A scaling function for protovis.

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)))

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