Alex Rivera | Logout

How to change the default font size in ggplot2

Asked 2012-08-14T15:01:56.547
117

I'd like to know if it is possible to change some default parameters of ggplot2 graphics, like font size for instance, for a whole R session. The idea is to avoid setting them for each plot.

Edit
Report

1 Answer

131

Use theme_set()

theme_set(theme_gray(base_size = 18))
qplot(1:10, 1:10)

enter image description here

answered 2012-08-14T15:11:41.177

Your Answer