An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20041015/f7e215b7/attachment.pl
R plot problems
5 messages · Ivy_Li, Henric Nilsson, Marta Rufino +1 more
At 16:17 2004-10-15 +0800, you wrote:
[...] I want to rotate the direction of x-coordinates' letter so that it can show all. But I don't know how to write this option or function .
I'm not sure if I've understood your question correctly. But if you use base graphics and want e.g. rotated labels, you'll achive this rather easily using functions in the gridBase package. (Take a look at the package vignette for an example that'll get you started.) Henric
Dear Li, If you are using base grafics, you use the argument srt (see help(par)), if you are using latice, you use rot argument. For example: scala=list(y=list(alternating=F, draw=T, rot=0,tick.number=6), x=list(alternating=F, draw=T, rot=0, tick.number=8)) xyplot(xx ~ yy, data=b, scale=scala) hope this helps, All the best Marta ----- Original Message ----- From: "Henric Nilsson" <henric.nilsson at statisticon.se> To: "Ivy_Li" <Ivy_Li at smics.com> Cc: <r-help at stat.math.ethz.ch> Sent: Friday, October 15, 2004 10:38 AM Subject: Re: [R] R plot problems
At 16:17 2004-10-15 +0800, you wrote:
[...] I want to rotate the direction of x-coordinates' letter so that it can show all. But I don't know how to write this option or function .
I'm not sure if I've understood your question correctly. But if you use base graphics and want e.g. rotated labels, you'll achive this rather easily using functions in the gridBase package. (Take a look at the
package
vignette for an example that'll get you started.) Henric
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
At 10:51 2004-10-15 +0100, you wrote:
If you are using base grafics, you use the argument srt (see help(par)),
How do you get a, say, 45 degree rotation of the axis labels using `srt'? The help page for par's `las' argument says "Note that other string/character rotation (via argument srt to par) does not affect the axis labels" Henric
On Fri, 2004-10-15 at 07:18, Henric Nilsson wrote:
At 10:51 2004-10-15 +0100, you wrote:
If you are using base grafics, you use the argument srt (see help(par)),
How do you get a, say, 45 degree rotation of the axis labels using `srt'? The help page for par's `las' argument says "Note that other string/character rotation (via argument srt to par) does not affect the axis labels" Henric
See the new R FAQ: 7.27 How can I create rotated axis labels? HTH, Marc Schwartz