[R] ggplot2 font size problem

dhzdhz myjunkbox at gmail.com
Mon Aug 11 17:55:28 CEST 2008


How do I change the font size of the label in ggplot. For example

x=c("abcdefghijklmn", "opqrstuvwxyz")
y=c(1, 2)
df=data.frame(name=x, value=y)

p=ggplot(df, aes(name, y))+geom_point()

Now the name of "abcdefghijklmn" and "opqrstuvwxyz" are too long. How can I
change the font size of them. And can I also change the orientation of them?

thanks
-- 
View this message in context: http://www.nabble.com/ggplot2-font-size-problem-tp18928577p18928577.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list