Skip to content

R plot problems

5 messages · Ivy_Li, Henric Nilsson, Marta Rufino +1 more

#
At 16:17 2004-10-15 +0800, you wrote:

            
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
package
http://www.R-project.org/posting-guide.html
#
At 10:51 2004-10-15 +0100, you wrote:

            
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:
See the new R FAQ:

7.27 How can I create rotated axis labels?

HTH,

Marc Schwartz