[R] How to change a venn command into a named object that can be plotted like a lattice object

Hrishi Mittal hrishimittal at gmail.com
Tue Feb 23 03:34:31 CET 2010


George,

Unless, Venn Diagrams are produced as lattice objects, I don't think you can
save them to modify or update later on. However, if you are just looking for
a shortcut to avoid calling the plotting function again and again you could
use the recordPlot() and replayPlot() functions. Add this line to the end of
your Venn2 function definition:

return(recordPlot())

Then once you've assigned the plot to VennPlot, you can use the following
command to replot it again whenever you need it:

replayPlot(VennPlot)


-----
Try  http://prettygraph.com Pretty Graph , the easiest way to make R-powered
graphs on the web.
-- 
View this message in context: http://n4.nabble.com/How-to-change-a-venn-command-into-a-named-object-that-can-be-plotted-like-a-lattice-object-tp1565421p1565438.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list