hplot {VDCutil} | R Documentation |
This calls plot() to plot the object, bitmap() to output it as bitmaps, and HTMLInsertGraph to generate HTML referring to it
hplot(x,y, ... , htmlFile=NULL, graphfileBase=NULL, bitmapArgs=NULL,htmlArgs=NULL)
x |
object to plotted |
y |
optional object to plotted |
... |
additional parameters passed to plot.default |
htmlFile |
location of html file to write to, will default to contents of .HTML.file or tempdir/index.html |
graphfileBase |
base name for graph files , defaults to "graph" |
bitmapArgs |
arguments to pass to bitmap |
htmlArgs |
arguments to pass to HTMLInsertFile |
None
Micah Altman vdc-dev@latte.harvard.edu http://thedata.org
# Note: requires R2HTML # start HTML output HTMLInitFile() hplot(1:10) # plot(1:10) embedded as html # lm produces multiple plots, which are all captured sequentially hplot(lm(Employed~.,longley)) #change default options hplot(2:10,bitmapArgs=list(type="jpeg",res=300), htmlArgs=list(GraphBorder=0,Caption="This is a Caption")) HTMLEndFile()