pv.scale: A scaling function for protovis.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/protovis.R

Description

A scaling function for protovis.

Usage

1
pv.scale(type, width, height, data, data.name, scale.min, scale.max, xmin, xmax, ymin, ymax)

Arguments

type

The type is a "." separated string which determines whether the scaling is linear, log, or ..., and what parameter should be scaled.

width

The width of the panel.

height

The height of the panel.

data

The data for the panel.

data.name

The name of the variable to be scaled.

scale.min

The minimum scaled value (or defaults to zero) in pixels.

scale.max

The maximum scaled value (or defaults to the height/width of the visualization) in pixels.

xmin

The minimum x value for the scaled output.

xmax

The maximum x value for the scaled output.

ymin

The minimum y value for the scaled output.

ymax

The maximum y value for the scaled output.

Details

pv.scale A scaling function for protovis.

Value

The HTML output

Author(s)

Shane Conway shane.conway@gmail.com

References

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

Examples

1
pv.scale(type="linear.value.y", width=200, height=200, data=data.frame(value=c(1:5)))

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

Search within the webvis package
Search all R packages, documentation and source code