[R] plot feature request

Bill Simpson wsi at gcal.ac.uk
Thu Mar 16 17:38:56 CET 2000


Fairly often I make multi-plot figures. I know that there are several
fancy ways to do that in R. I simply make the individual plots and then
put then together in LyX.

When plots are stacked on top of each other, in my area the journals
like them like this:

4-|			-|
  |			 |
3-|			-|	
  |			 |			
2-|			-|	
  |			 |
1-|			-|
  |			 |
  --+--+--+--+--	 --+--+--+--+--

4-|                     -|
  |                      |
3-|                     -| 
  |                      |
2-|                     -|
  |                      |
1-|                     -|
  |                      |
  --+--+--+--+--         --+--+--+--+--
    1  2  3  4		   1  2  3  4
     x axis                  x axis

The axis labels and annotation are eliminated sometimes.

I know that the bottom right plot can be done by
plot(...,ann=FALSE, axes=FALSE)
axis(side=1,at=...,labels=FALSE)
axis(side=2,at=...,labels=TRUE)
text(x=...,y=...,"x axis")
This is quite a hassle. (It is tricky to get the scales and
axis hash mark positions all exactly the same; it is tricky to position
the annotation)

It would be much easier if I could
- set ann.x and ann.y separately to TRUE/FALSE
- set separate arguments labels.x and lables.y to TRUE/FALSE in
plot() instead of in axis().

Then to get the top right plot I would do:
plot(..,ann.x=FALSE, ann.y=FALSE, labels.x=FALSE, labels.y=FALSE)
and the
bottom right plot would be
plot(..,ann.x=TRUE, ann.y=FALSE, labels.x=TRUE, labels.y=FALSE)

This would be a major improvement so far as I'm concerned. (Maybe I've
overlooked some other easy way to do what I want)

Bill Simpson

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list