Thanks, Katharine!
Your suggestion is probably simple enough. However,
my modification below is needed to do what is required
(yours labels the tick-marks at 200,400,600,800,1000;
mine does it at 0,200,400,600,800,1000).
Thanks, and best wishes,
Ted.
On 30-Nov-07 13:19:32, Katharine Mullen wrote:
something like this sounds like what you want:
labs<-NA
x<-200
for(i in 1:5){ labs<-append(labs, c(rep(NA,3),x)); x<-x+200 }
plot(1:900, xaxt="n", xlim=c(0, 1000))
axis(side = 1, at = seq(0,1000,by=50), labels=labs)
On Fri, 30 Nov 2007 [EMAIL PROTECTED] wrote:
> Hi Folks,
> I'm advising someon
Ted,
I don't think you can include the axis ticks in plot(), but you can
specify them in axis() using
plot(x,y,xlim=c(0,1000), axes=F)
box()
axis(1,at=seq(0,1000,50),labels=F)
axis(1,at=seq(0,1000,200),labels=T)
Obviously, if you want this to be variable for different xlim etc, your
simplest ans
Hi Folks,
I'm advising someone who's a beginner with R,
and therefore wants the simplest answer possible.
The issue is to produce a plot using
plot(x,y,...)
where, on the X-axis, the tick-marks should be
on the lines of:
-- Range of X-axis: 0:1000
-- tick-marks labelled "0","200",...,"800","1
4 matches
Mail list logo