Description Usage Arguments Details Value Author(s) References See Also Examples
Simplified plot function for web vis plots.
1 |
x |
Either the "x" axis data or all the data for the visualization (can be vector or dataset). |
y |
Optional, can specify the "y" axis data. |
type |
The type of plot. Can be "bar", "line", "area", "pie", "dot", or "shape" |
width |
The width of the panel in pixels. |
height |
The width of the panel in pixels. |
add.grid |
Logical value for whether to add a grid. |
add.axes |
Whether to add x-y axes. |
scale.min |
Whether the y-axis should be scaled to zero or the minimum value in the data |
... |
Other parmaeters for pv.chart. |
plot.webvis
Simplified plot function for web vis plots
Opens a plot in a browser window.
Shane Conway shane.conway@gmail.com
http://vis.stanford.edu/protovis/
new.webvis
that creates the webvis object.
1 2 3 4 5 6 7 8 9 10 11 | plot.webvis(x=c(1, 2, 1.5, 3, 1.2), type="line")
plot.webvis(x=c(1, 2, 1.5, 3, 1.2), type="area")
plot.webvis(c(1, 2, 1.5, 3, 1.2, 1.7, 2.5, 6, 5), add.grid=FALSE)
plot.webvis(c(1, 2, 1.5, 3, 1.2, 1.7, 2.5, 6, 5), type="area")
plot.webvis(c(1, 2, 1.5, 3, 1.2, 1.7, 2.5, 6, 5), type="line", scale.min=0)
plot.webvis(c(1, 2, 1.5, 3, 1.2, 1.7, 2.5, 6, 5), type="line", scale.min=NULL)
plot.webvis(x=10*rnorm(20), width=500, height=500, type="line")
plot.webvis(x=100*rnorm(20), y=100*rnorm(20), width=500, height=500, type="dot")
plot.webvis(x=c(1, 2, 1.5, 3, 1.2), type="pie")
plot.webvis(x=c(1, 2, 1.5, 3, 1.2), type="pie", inner.radius=80)
plot.webvis(x=1:5, y=c(1, 2, 1.5, 3, 1.2), type="area")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.