Re: [R] ggplot - axis labels angle

From: hadley wickham <h.wickham_at_gmail.com>
Date: Fri, 21 Mar 2008 16:12:54 +0100

Hi Bernd,

Something like:

qplot(mpg, wt, data=mtcars)
grid.gedit("xaxis::label::text", rot=45)

should do the trick. The only problem is that the automatic sizing is set up to work with one orientation of labels. You might be able to fudge a solution by experimenting with hjust and vjust, and xlab="\n\nMy label"

Hadley

On Thu, Mar 20, 2008 at 2:29 PM, Bernd Ebersberger <Bernd.Ebersberger_at_mci.edu> wrote:
> dear R-tists,
>
> im an struggling with labeling ticks of the axis in a ggplot.
> i would like to print the text associated with the ticks being ploted
> with a 90 degree angle.
> how can i possibly do this?
>
> cheers.
>
> bernd.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Bernd Ebersberger
> Management Center Innsbruck, Austria
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

-- 
http://had.co.nz/

______________________________________________
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.
Received on Fri 21 Mar 2008 - 15:16:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Mar 2008 - 16:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive