ggplot2 - R - different font sizes when using atop -
creating plot y-axis has 2 lines. i'm using atop function follows:
plot + ylab(expressions(atop("line 1","line 2")))
wondering whether possible change line 1's font size i.e., make larger line 2?
thanks!
the mechanism make specific sections of fonts smaller using plotmath scriptstyle
function. there's make-even-smaller version of it. @ ?plotmath
page full list of plotmath functions. don't know of plotmath strategy making fonts larger.
plot + ylab(expression( atop(line~1, scriptstyle(line~2)) ))
note there no expressions
function , converted text real r expression. might @ theme() settings element_text features axis.title.y increase text size.
plot + ylab(expression( atop( line~ 1, scriptstyle( line~ 2) ))) + theme(axis.title.y = element_text( size = rel(2) ) )
Comments
Post a Comment