Hi, I have an data like this x <- c(1:11) y <- seq(245,445,20) I make a plot plot(x,y) The first y value in y axis is 250 and the last y valeu is 450, the spacing between values are 50, so the y values showed are: 250, 300, 350, 400, 450 I need that values in y axis are: 240, 280, 320, 360, 400, 440, 480. I try plot(x,y,yaxp=c(240,480,6)) dont work I try plot(x,y,yaxp=c(240,480,6),ylim=range(240,480)) dont work too. How I make this control? Thanks Ronaldo -- The turtle lives 'twixt plated decks Which practically conceal its sex. I think it clever of the turtle In such a fix to be so fertile. -- Ogden Nash -- |> // | \\ [***********************************] | ( ? ? ) [Ronaldo Reis J?nior ] |> V [UFV/DBA-Entomologia ] | / \ [36571-000 Vi?osa - MG ] |> /(.''`.)\ [Fone: 31-3899-2532 ] | /(: :' :)\ [chrysopa at insecta.ufv.br ] |>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ] | ( `- ) [***********************************] |>> _/ \_Powered by GNU/Debian Woody/Sarge
x <- c(1:11) y <- seq(245,445,20) plot(x,y, axes=F, ylim=c(240, 480)) axis(1) axis(2, at=seq(240, 480, 40)) Worked for me on R 1.7.1 and S-Plus 6.1 under Win2000. hope this helps. spencer graves Ronaldo Reis Jr. wrote:> Hi, > > I have an data like this > > x <- c(1:11) > y <- seq(245,445,20) > > I make a plot > > plot(x,y) > > The first y value in y axis is 250 and the last y valeu is 450, the spacing > between values are 50, so the y values showed are: 250, 300, 350, 400, 450 > > I need that values in y axis are: 240, 280, 320, 360, 400, 440, 480. > > I try > > plot(x,y,yaxp=c(240,480,6)) > > dont work > > I try > > plot(x,y,yaxp=c(240,480,6),ylim=range(240,480)) > > dont work too. > > How I make this control? > > Thanks > Ronaldo >
Seemingly Similar Threads
- screen can't go back to log="y" plot (PR#831)
- Problem having tick marks aligned when plotting three graphs on top of one another.
- axTicks on a reverse ylog plot (PR#7973)
- How to compute "yaxp" and "usr" without plotting ?
- yaxp problem for more irregular time series in one plot