pv.image: Add an image to the visualization.

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

View source: R/protovis.marks.R

Description

Add an image to the visualization.

Usage

1
2
pv.image(url, left.name="x", bottom.name="y", bottom.scale=paste("linear", bottom.name, "y", sep = "."), left.scale=paste("linear", left.name, "x", sep =
    "."), ...)

Arguments

url

The url for the image to be displayed.

bottom.name

The name of the field in the supplied data frame or vector.

left.name

The name of the field in the supplied data frame or vector.

bottom.scale

The name of the field in the supplied data frame or vector.

left.scale

The name of the field in the supplied data frame or vector.

...

The parameters from pv.chart

Details

pv.image Add an image to the visualization.

Value

A wv object.

Author(s)

Shane Conway [email protected]

References

http://code.google.com/p/protovis-js/wiki/PvWedge

See Also

pv.chart, a more low-level charting function.

Examples

1
2
3
4
wv <- pv.panel(width=150, height=150)
render.webvis(wv + pv.image(url="http://vis.stanford.edu/protovis/ex/stanford.png", left.name=NULL, bottom.name=NULL))
pv.image(url="http://vis.stanford.edu/protovis/ex/stanford.png", width=100, height=100, left.name=NULL, bottom.name=NULL, render=TRUE)
pv.image(data=c(1, 1.2, 1.7, 1.5, .7, .5, .2), url="http://vis.stanford.edu/protovis/ex/stanford.png", width=50, height=50, render=TRUE)

webvis documentation built on May 30, 2017, 12:46 a.m.