Skip to content

How to specify axis interval unit...

2 messages · V Prasanth, Uwe Ligges

#
Dear Duncan Murdoch:

Thanks for your tips. By the way, I think I didn't mentioned my question
very clear. What I mean to say is that, in Excel one could decide upon the
axis interval unit. Please see the attached file. Likewise, is it possible
in R...?

Regards,
Prasanth.

-----Original Message-----
From: Duncan Murdoch [mailto:murdoch at stats.uwo.ca]
Sent: Tuesday, March 31, 2009 6:25 PM
To: V Prasanth
Cc: r-help at r-project.org
Subject: Re: [R] How to specify axis interval unit...
On 3/31/2009 5:08 AM, V Prasanth wrote:
You can set axes=FALSE, names="" and then use whatever axes you like. 
Modifying the first example in examples(barplot):

tN <- table(Ni <- stats::rpois(100, lambda=5)) r <- barplot(tN,
col=rainbow(20), axes=F, names="") axis(2, at=2^(0:5)) axis(1, at=r,
labels=letters[1:length(tN)])

Duncan Murdoch
else is unauthorized.
not reach its intended recipient.
or its management.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Document1.pdf
Type: application/pdf
Size: 6024 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090401/c9f7b2f9/attachment-0002.pdf>
1 day later
#
V Prasanth wrote:
See ?axis

Uwe Ligges