r - Change the font size of a ggplot chart -
in ggplot chart have title chart , values x , y axis. when save chart image labels tiny.
i tried change font size using:
size = 21
but didn't work. there easy way chage font size whole chart?
size of texts changed using function theme()
, choosing element need modify. set font size texts in plots attribute text
should changed.
ggplot(mtcars,aes(cyl,mpg))+geom_point()+theme(text=element_text(size=21))
Comments
Post a Comment