Learn R Programming

seecolor

Overview

When you select color literals, a palette, or a ggplot2 object, the colors used there will be output in the console.

Installation

# install from CRAN
install.packages("seecolor")

# install from GitHub:
devtools::install_github("lovestat/seecolor")

Usage

# Highlight objects by cursor to show the contained colors
pick_color()

# Change output styles, "ribbon" or "mosaic"
pick_color(type = "r")

# Change the length of the color blocks
pick_color(blank.len = 1)

# Print colors contained in literal, palette and ggplot objects
print_color(colors(), type = "m", blank.len = 1)

# Open the pre-defined test file
open_sample()

Copy Link

Version

Install

install.packages('seecolor')

Monthly Downloads

226

Version

0.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Shangchen Song

Last Published

February 24th, 2023

Functions in seecolor (0.2.0)

z_pick_color_addin_ribbon

Pick Color as Ribbons
z_pick_color_addin_mosaic

Pick Color as Mosaic
print_color

Print the colors
open_sample

Open the sample test file
pick_color

Select object by cursor and show colors in the console