View Colors Used in R Objects in the Console

Output colors used in literal vectors, palettes and plot objects (ggplot).


seecolor

CRAN_Status_Badge Build Status R build status

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()

Show the palette colors!

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("seecolor")

0.2.0 by Shangchen Song, 4 years ago


https://github.com/lovestat/seecolor


Report a bug at https://github.com/lovestat/seecolor/issues


Browse source code at https://github.com/cran/seecolor


Authors: Shangchen Song [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, crayon, purrr, stringr, rstudioapi, magrittr, ggplot2, fansi

Suggests covr, knitr, rmarkdown


See at CRAN