Learn R Programming

webvis (version 0.0.2)

pv.label: Add a label to the visualization.

Description

Add a label to the visualization.

Usage

pv.label(text, text.name, ...)

Arguments

text
The text for the label.
text.name
The name of the column from supplied data.
...
The parameters from pv.chart

Value

Details

pv.label Add a label 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
wv <- wv + (pv.rule(wv=wv, data=1:10, axis="y", stroke.style="rgba(128,128,128,.2)") + pv.label(anchor="right", text.name="y"))
wv <- wv + (pv.rule(wv=wv, data=1:10, axis="x", stroke.style="rgba(128,128,128,.2)") + pv.label(anchor="bottom", text.name="x"))
wv <- wv + pv.dot(wv=wv, data=c(1, 1.2, 1.7, 1.5, .7, .5, .2), scale.min=0)
render.webvis(wv)

Run the code above in your browser using DataLab