Skip to content

How to remove x, y labels from a plot

1 message · Jin.Li@csiro.au

#
Hi Arne,
It works. It produced what I wanted. 
y<-rnorm(1000, 2, 0)
plot(density(y), ylab="Abundance of species", xlab="Environmental
gradient", main=" ", lty=2, col=4, xaxt="n", yaxt="n")
Thanks, Arne. And also thanks to other responses.
Regards,
Jin

-----Original Message-----
From: Arne Henningsen [mailto:ahenningsen at email.uni-kiel.de] 
Sent: Tuesday, 16 November 2004 10:33 P
To: r-help at stat.math.ethz.ch
Cc: Li, Jin (CSE, Atherton)
Subject: Re: [R] How to remove x, y labels from a plot

Hi Jin Li,

does
   plot( 1:100, rnorm(100), ann=FALSE, xaxt="n", yaxt="n" )
produce what you want?

Arne
On Tuesday 16 November 2004 13:06, Jin.Li at csiro.au wrote:
I