[Bioc-devel] using figures in .Rnw files

Seth Falcon sfalcon at fhcrc.org
Tue Mar 29 22:11:00 CEST 2005


Hi Laurentiu,

Tarca Adi Laurentiu <ltarca at biota.rsvs.ulaval.ca> writes:
> I have a question about building the vignettes files (.Rnw).  Say I
> have a function myFunction() which produces 2 plots (invoking a
> x11() for each of them).

I think you'll want to rewrite the function to not call x11().  If you
are using lattice graphics, be sure to call print on the resulting
plot object:

myplot <- xyplot(...)
print(myplot)

I gather you want two plots near each other.  I suspect the par
options with mfrow is the way to go.  You may need to change the size
of the plot in the Rnw file to get the ratios you want.

HTH,

+ seth



More information about the Bioc-devel mailing list