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

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -