[R] Removing X and Y labels in graph error
Greg Snow
Greg.Snow at imail.org
Tue Feb 8 23:34:21 CET 2011
If you want to expand the area that the graph takes up (using the space that the labels would have been in) look at the "mar" part of ?par.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of poolmunch
> Sent: Tuesday, February 08, 2011 1:37 PM
> To: r-help at 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 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", yaxt="n",main = NULL, sub = NULL, xlab = NULL, ylab
> =
> NULL)
>
>
>
>
> Ive been able to get rid of it by xlab = " " but this is not
> satisfactory as
> the graph size must change as well.
>
> Thanks to anyone who has a look at what must be a stupid question...
> --
> View this message in context: http://r.789695.n4.nabble.com/Removing-X-
> and-Y-labels-in-graph-error-tp3276738p3276738.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list