Add an image to the visualization.

Share:

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 shane.conway@gmail.com

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.