print_color | R Documentation |
Print out the colors used by a literal vector, a palette, or a ggplot object
print_color(x, type = "mosaic", blank.len = 3)
x |
A literal vector, a palette, or a ggplot object |
type |
A character. The style of printing. The default is |
blank.len |
A integer. The length of color mosaic. The default value is 3. |
print_color(colors(), type = "mosaic", blank.len = 3) print_color(palette(), type = "ribbon")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.