Description Usage Arguments Details Value Author(s) References Examples
Generic function for all Protovis mark types.
1  | 
wv | 
 A webvis object  | 
type | 
 Can be "Line", "Bar", etc. (see Protovis API)  | 
data | 
 A dataset for plotting.  | 
... | 
 Any number of pv.param objects.  | 
anchor | 
 If anchoring to another object.  | 
pv.mark Generic function for all Protovis mark types.  This function can be used
to create any kind of Protovis object regardless of whether it has been exposed separately.
A webvis object.
Shane Conway shane.conway@gmail.com
http://vis.stanford.edu/protovis/
1 2 3 4 5 6  | data <- data.frame(y=1:5)
pv.mark(wv=new.webvis(), type="Line", data=data, 
pv.param(name="data", value=data), 
pv.param(name="bottom", data.name="y", scale="linear.y.y"))
pv.mark(type="Label", ...=pv.param(name="text", data.name="y"))
pv.parse(pv.param(name="text", data.name="y"), data=data.frame(y=1:5))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.