Obviously, ggplot2 has a way to set plot symbol, colors, line type, etc. to some default when users use geom_* calls without argument. How can one change these default globally instead of setting geom_arguments to given values?
I am specifically interested in the cases where data is not stratified, ie no aesthetics is used to group the data by strata.
The problme can be illustrated by replacing the typical sequence:
library(ggplot2) gdata <- data.frame(x = 1:10, y = 1:10) ggplot(data = gdata) + aes(x = x, y = y) + geom_point(colour = 'red', shape = 21)
by the use of some custom function
change_ggplot2_default() which would do the same thing
#ggplot(data = gdata) + # aes(x = x, y = y) + # change_ggplot2_default()
Thank you in advance
PS: I thought about using scale_*_manual but that does not work if the aesthetics are not used.