Title: View Colors Used in R Objects in the Console
Version: 0.2.0
Description: Output colors used in literal vectors, palettes and plot objects (ggplot).
Imports: dplyr, crayon, purrr, stringr, rstudioapi, magrittr, ggplot2, fansi
License: MIT + file LICENSE
URL: https://github.com/lovestat/seecolor
BugReports: https://github.com/lovestat/seecolor/issues
Encoding: UTF-8
RoxygenNote: 7.1.1
Suggests: covr, knitr, rmarkdown
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2023-02-24 16:40:30 UTC; ss
Author: Shangchen Song [aut, cre]
Maintainer: Shangchen Song <s.song@ufl.edu>
Repository: CRAN
Date/Publication: 2023-02-24 16:50:02 UTC

Open the sample test file

Description

Open the sample test file

Usage

open_sample()

Select object by cursor and show colors in the console

Description

Simply highlight the text in the Source panel and the colors used in the specific object will be output in the console

Usage

pick_color(type = "mosaic", blank.len = 3)

Arguments

type

A character. The style of printing. The default is mosaic. It should be one of the mosaic, ribbon, or m, r

blank.len

A integer. The length of color mosaic. The default value is 3.

Examples


pick_color(type = "mosaic", blank.len = 3)
pick_color(type = "ribbon", blank.len = 3)



Description

Print out the colors used by a literal vector, a palette, or a ggplot object

Usage

print_color(x, type = "mosaic", blank.len = 3)

Arguments

x

A literal vector, a palette, or a ggplot object

type

A character. The style of printing. The default is mosaic. It should be one of the mosaic, ribbon, or m, r

blank.len

A integer. The length of color mosaic. The default value is 3.

Examples


print_color(colors(), type = "mosaic", blank.len = 3)
print_color(palette(), type = "ribbon")


Pick Color as Mosaic

Description

Run pick_color(type = 'mosaic') as addin, you may not run this directly by code, since it comes without arguments

Usage

z_pick_color_addin_mosaic()

Pick Color as Ribbons

Description

Run pick_color(type = 'ribbon') as addin, you may not run this directly by code, since it comes without arguments

Usage

z_pick_color_addin_ribbon()