plot.webvis: Simplified plot function for web vis plots.

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Simplified plot function for web vis plots.

Usage

1
plot.webvis(x, y, type="dot", width=300, height=200, add.grid=TRUE, add.axes=TRUE, scale.min, ...)

Arguments

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.

Details

plot.webvis Simplified plot function for web vis plots

Value

Opens a plot in a browser window.

Author(s)

Shane Conway shane.conway@gmail.com

References

http://vis.stanford.edu/protovis/

See Also

new.webvis that creates the webvis object.

Examples

 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")

leeper/rwebvis documentation built on May 21, 2019, 1:39 a.m.