Hello, had a quick search on the site but no luck.
Heres my problem, when attempting to xlab = NULL and ylab = NULL it displays
x[[1L]] and X[[2L]] as labels on the axis.
plot(USSenate[,1:2],col=c(blue,grey,red)[unclass(USSenate$Senate)],pch=unclass(USSenate$Senate),
type=n,xaxt=n,
Contrast the behaviour of these two statements:
plot(x,y,xlab=NULL,ylab=NULL)
plot(x,y,xlab='',ylab='')
In other words, use xlab='' to supress the label, not NULL.
- Phil Spector
Statistical Computing Facility
On Feb 8, 2011, at 3:36 PM, poolmunch wrote:
Hello, had a quick search on the site but no luck.
Heres my problem, when attempting to xlab = NULL and ylab = NULL it
displays
Those are the default settings:
?plot.default
... , xlab = NULL, ylab = NULL, ...
xlab a label for the x
-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of poolmunch
Sent: Tuesday, February 08, 2011 1:37 PM
To: r-help@r-project.org
Subject: [R] Removing X and Y labels in graph error
Hello, had a quick search on the site but no luck.
Heres my problem, when attempting
Have a look at
?par
especially the mar argument, to get rid off the boundaries reserverd
for labelling.
Am 08.02.2011 21:36, schrieb poolmunch:
Hello, had a quick search on the site but no luck.
Heres my problem, when attempting to xlab = NULL and ylab = NULL it displays
x[[1L]] and
Hey thanks for all the help,
I did end up using layout, par, mar to reduce the labelling area and combine
it with other plots.
I also now understand NULL was the wrong argument to place in the field.
Thanks again
--
View this message in context:
6 matches
Mail list logo