[R] ggplot2 font size problem

stephen sefick ssefick at gmail.com
Mon Aug 11 18:39:39 CEST 2008


I can't reproduced this (function aes), but have you looked at
?par
cex
cex.axis (and so on)

On Mon, Aug 11, 2008 at 11:55 AM, dhzdhz <myjunkbox at gmail.com> wrote:
>
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted the
annoying little problems of being mammals.

	-K. Mullis



More information about the R-help mailing list