scale_color_strat | R Documentation |
Colour schemes for ggplot
scale_color_strat()
library(ggplot2) data(pe_ratio_mxem) df <- dplyr::mutate(pe_ratio_mxem, date_range = cut(date, 5)) ggplot(df, aes(x = date, y = PE_RATIO, color = date_range)) + geom_line() + scale_color_strat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.