Replace the xlab=NULL and ylab=NULL in your example code with xlab="" and
ylab="" to remove the "x" and "y" labels on your axes. If you're also trying
to remove the ticks and tick labels, substitute xaxt="n" and yaxt="n" into
your code.

x= c(1,5,7,3,4)
y= c(2,4,5,2,5)
plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0, 0,
0,0.5), xaxt=NULL,yaxt=NULL, xlab="",ylab="")
>
>

On Sun, Nov 21, 2010 at 11:02 AM, madr <madrazel@interia.pl> wrote:

>
> here's the code
>
> x= c(1,5,7,3,4)
> y= c(2,4,5,2,5)
> plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0, 0, 0,
> 0.5), xaxt=NULL,yaxt=NULL, xlab=NULL,ylab=NULL)
>
> and x and y are still visible
> --
> View this message in context:
> http://r.789695.n4.nabble.com/plot-x-y-xlab-NULL-ylab-NULL-but-labels-still-visible-tp3052439p3052482.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
___________________________
Luke Miller
Postdoctoral Researcher
Marine Science Center
Northeastern University
Nahant, MA
(781) 581-7370 x318

	[[alternative HTML version deleted]]

