[R] R_WinEdt question
Mark Wardle
mark at wardle.org
Thu Nov 30 12:00:57 CET 2006
Aimin Yan wrote:
> if I want to put fig1plot to the left, figYPplot to the right
> figYAaplot on the bottom.
> How to modify the following cod to do these?
>
There are several ways to arrange multiple figures.
1. Use LaTeX to organise separate figures
Please read the documentation about package "subfigure" which works
really well, and supports subcaptions. This approach does not involve
modifying your R code (if indeed that is what you are using to generate
your figures - you don't explicitly mention this)
2. Use R to organise your figures.
Please read documentation on commands:
par() eg: par(mfrow=c(2,2))
split.screen()
layout()
This approach generates one single "figure" made up of multiple figures.
This single figure can then be incorporated into LaTeX in the usual fashion.
Depending on what you are trying to achieve, both approaches can be
mixed in the same document with good effect.
Hope this helps,
Mark
--
Dr. Mark Wardle
Clinical research fellow and Specialist Registrar in Neurology,
C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK
More information about the R-help
mailing list