gexijin / idepGolem

14 stars 10 forks source link

Add global graphic parameters #109

Open espors opened 2 years ago

espors commented 2 years ago

What Add global graphic parameters that "follow" the user throughout the whole app.

Ideas

espors commented 2 years ago

This functionality will be added to the ottoPlots package and then sourced.

EricTulowetzke commented 1 year ago

@espors what do you need help with here?

bderenge commented 1 year ago

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.

gexijin commented 1 year ago

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.

gexijin commented 1 year ago

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.