hi, All. I'm using R 1.2.2 on a linux box.
I have very long labels on my y axis, and when I try to print them
out, they always come out clipped so I can't see them. How do I
change the margin for the y axis? I've tried mai and mar, but they
don't seem to do anything...
process.names <- c("Makeprod-data", "Makeprod-QMM",
"Search",
"Download", "View Data", "View QMM",
"Consult", "Stop", "Misfire",
"Misfire", "Unknown")
and Makeprod-data only shows "od-data" ...
thanks!
greg
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Greg Trafton wrote:> > hi, All. I'm using R 1.2.2 on a linux box. > > I have very long labels on my y axis, and when I try to print them > out, they always come out clipped so I can't see them. How do I > change the margin for the y axis? I've tried mai and mar, but they > don't seem to do anything... > > process.names <- c("Makeprod-data", "Makeprod-QMM", "Search", > "Download", "View Data", "View QMM", "Consult", "Stop", "Misfire", > "Misfire", "Unknown") > > and Makeprod-data only shows "od-data" ...par(mar=...) is the right idea, e.g.: # changing the default for left side margin from 4 to 10: par(mar=c(5, 10, 4, 2) + 0.1) plot(1:11, yaxt="n", ylab="") axis(2, 1:11, labels=process.names, las=2) Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Greg Trafton wrote:> ...How do I change the margin for the y axis? I've tried mai and mar, but they > don't seem to do anything...This worked on my setup:> par(mar=c(5,8,4,2)) > plot(1:10) > process.names <- c("Makeprod-data", "Makeprod-QMM", "Search", + "Download","View Data", "View QMM", "Consult", "Stop", "Misfire", + "Misfire", "Unknown")> par(las=1) > axis(2,1:11,labels=process.names)Hope this helps, Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._