Skip to content

axis in a normal plot

3 messages · Silje-Kristin Jensen, PIKAL Petr, Marianne Promberger

#
Hi

r-help-bounces at r-project.org napsal dne 26.09.2008 10:49:40:
Like in

plot(rnorm(10), axes=F)
axis(2, at = c(0,1))
box()

Regards
Petr
http://www.R-project.org/posting-guide.html
#
On Friday, 26 September 2008, 10:49 (UTC+0200), Silje-Kristin Jensen wrote:
You need two steps.

in your plot() set yaxt="n" so that R doesn't draw any y axis.

Then, after plotting, you draw a custom y axis with axis()

x <- seq.int(0,1,0.2)
y <- x
plot(x,y, yaxt="n")
axis(2,at=c(0.2,0.6,1))

m.