powered by
Print out the colors used by a literal vector, a palette, or a ggplot object
print_color(x, type = "mosaic", blank.len = 3)
A literal vector, a palette, or a ggplot object
A character. The style of printing. The default is mosaic. It should be one of the mosaic, ribbon, or m, r
mosaic
ribbon
m
r
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")
Run the code above in your browser using DataLab