Open espors opened 2 years ago
This functionality will be added to the ottoPlots package and then sourced.
@espors what do you need help with here?
One approach I found would require making a wrapper function for ggplots that add colors / edit gridlines. my_ggplot <- function(plot){ return(plot + scale_color_manual(my_colors) ) }
We can set global colors or allow the user to pick them. my_colors <- c("#003087", "#FFD700", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7") I'm hesitant to implement this; I doubt one function would work for every ggplot we have.
There is a Plot Options button in the Load Data tab, if someone wants to try. We can start small. I agree with Emma that this is not a huge priority.
I added to controls in the Load Data tab. One is for the gridlines for all ggplot2 plots. This works great. Another is to apply different ggplot2 themes. This work but some of the settings are overwritten in individual plots.
What Add global graphic parameters that "follow" the user throughout the whole app.
Ideas