hplot {VDCutil}R Documentation

plots an object, with html output

Description

This calls plot() to plot the object, bitmap() to output it as bitmaps, and HTMLInsertGraph to generate HTML referring to it

Usage

hplot(x,y, ... , htmlFile=NULL,  graphfileBase=NULL, bitmapArgs=NULL,htmlArgs=NULL)

Arguments

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

Value

None

Author(s)

Micah Altman vdc-dev@latte.harvard.edu http://thedata.org

See Also

HTMLInsertGraph, bitmap, plot

Examples

# 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()


[Package VDCutil version 1.15 Index]