I want to update the default colors of my ggplot2 plots in R to
seablue <-rgb(0,0.6,0.82)
lightred <-rgb(0.8,0,0)
where seablue should be the color of the first line and lightred should be the color of the second line. Using
update_geom_defaults("line", list(size = 1.75, colour = seablue))
the color of the first line is changed to seablue for autoplot()
line graphs.
However, the colors of the density lines in gghistogram(data, add.normal = T, add.kde = T)
remain unchanged (first: lightblue and second: orange).
How can I change the default colors of the density in gghistogram()
such that the normal density is seablue and the kde density is lightred?
Related to this, how can I change the second default color of the autoplot()
line graphs to lightred?
(Note: I dont want to change the colors just for one plot, but for all plots of my file.)