[R] combine symbol beta and text in ggplot2 and adjust size

Juliet Hannah juliet.hannah at gmail.com
Thu Oct 30 16:16:35 CET 2008


For this example:

library(ggplot2)
p <- ggplot(mtcars, aes(x = wt, y=mpg)) + geom_point()
p <- p + scale_x_continuous(expression(beta))
p

How can I include text with the expression. For example, "level of
\beta". Also, how can I increase
the size of the font for this axis label.

Thanks,

Juliet



More information about the R-help mailing list