Learn R Programming

webvis (version 0.0.2)

pv.image: Add an image to the visualization.

Description

Add an image to the visualization.

Usage

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

Value

Details

pv.image Add an image to the visualization.

References

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

See Also

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

Examples

Run this code
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)

Run the code above in your browser using DataLab