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.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-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 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@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. ______________________________________________ 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.