[R] Moving plot labels

From: <dvrecko_at_sfu.ca>
Date: Thu 05 Apr 2007 - 00:21:01 GMT


I'm sure this is a simple problem, yet I can't seem to get simple help for it.

I am simply trying to move my xlab in plot().

I am currently using the following commands:

plot(c(-0.25,18),c(0, max(patient10)),type="n", ylab="SD of POST estimator", xlab="Scans \n (a)")

But when the plot prints, the xlab is printed over top the xaxis. I tried adjusting mar(), but this just works with the margins outside the plotting area. What is a simple fix? Is there a single command I can add that adjusts the size of the plotting area within the area controlled by mar()?

Thanks very much.


R-help@stat.math.ethz.ch 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. Received on Thu Apr 05 10:25:48 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 05 Apr 2007 - 01:30:56 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.