modify the ylabel in a multi-facets plot

3 views
Skip to first unread message

Giovanni Marco Dall'Olio

unread,
Aug 6, 2009, 6:32:04 AM8/6/09
to ggp...@googlegroups.com
Hi,
excuse me, but how can I modify the text of the ylabel in a multi-facets plot?

For example, let's say I create a facets plot with with mtcars:

> qplot(data=mtcars, x=mpg, facets = ~ gear, ylab='---') + opts(aes(ylab='---'))

On the ylabel, it will say 'count': how do I change it with a customized text?
I have tried different options, like:
+ opts(y.axis.title='sda')
+ opts(ylab='dsd')
+ geom_histogram(ylab='ds')

but none of these approaches worked.

I hope you will enjoy holydays soon!! :)

--
Giovanni Dall'Olio, phd student
Department of Biologia Evolutiva at CEXS-UPF (Barcelona, Spain)

My blog on bioinformatics: http://bioinfoblog.it

smu

unread,
Aug 6, 2009, 6:36:46 AM8/6/09
to ggp...@googlegroups.com
hey,

+ scale_y_continuous("---") should do it.

regards,
stefan

Giovanni Marco Dall'Olio

unread,
Aug 6, 2009, 6:39:57 AM8/6/09
to ggp...@googlegroups.com
thanks, it is not so intuitive but it works :)!
Reply all
Reply to author
Forward
0 new messages