View source: R/RectangleFiller.R
RectangleFiller | R Documentation |
Adds up to 5 colors of choice horizontally across a ggplot graph for data emphasis or decoration.
RectangleFiller(
plot1,
hex_codes = c("red", "blue", "green", "orange", "purple")
)
plot1 |
a ggplot with a continuous x-axis |
hex_codes |
series of wanted colors |
ggplot item with colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.