Hello, I am a new user. I would like to know if it is possible with R to fix the position of ticks. for example for my plot I obtained automatically the positions 200,400,600,800 and 1000 on x axis and so a scale of 200 But I would like to obtain 100,200,300,400,500,600,700,800,900,100 so a scale of 100. Which fonction can help me to do so? thank you meriema -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
help(par) gives:
xaxp: A vector of the form `c(x1, x2, n)' giving the coordinates of
the extreme tick marks and the number of intervals between
tick-marks.
So I tried:
> plot(x <- seq(0,1000,by=100),x,xaxp=c(0,1000,10))
but that did not seem to work. The following works:
> plot(x <- seq(0,1000,by=100),x,axes=F)
> axis(1,at=seq(0,1000,by=100))
> axis(2,at=seq(0,1000,by=100),las=1)
Rashid Nassar
On Sun, 5 Nov 2000, Meriema Belaidouni wrote:
> Date: Sun, 05 Nov 2000 17:58:47 +0100
> From: Meriema Belaidouni <meriema at info.univ-angers.fr>
> To: r-help at hypatia.math.ethz.ch
> Subject: [R] hello
>
> Hello,
> I am a new user.
> I would like to know if it is possible with R to fix the position of
> ticks.
> for example for my plot I obtained automatically the positions
> 200,400,600,800 and 1000 on x axis and so a scale of 200
> But I would like to obtain
> 100,200,300,400,500,600,700,800,900,100 so a scale of 100.
> Which fonction can help me to do so?
> thank you
> meriema
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sun, Nov 05, 2000 at 05:58:47PM +0100, Meriema Belaidouni wrote:> Hello, > I am a new user. > I would like to know if it is possible with R to fix the position of > ticks. > for example for my plot I obtained automatically the positions > 200,400,600,800 and 1000 on x axis and so a scale of 200 > But I would like to obtain > 100,200,300,400,500,600,700,800,900,100 so a scale of 100. > Which fonction can help me to do so? > thank you > meriemaHere is a simple example; plotting a sequence of 1000 random numbers against the sequence 1:1000. plot(1:1000, rnorm(1000), axes=FALSE) # plot with no axes axis(1, at = seq(0, 1000, by = 100)) # custom x axis axis(2) # default y axis box() # box around the plot Ross -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._