scmanual {ggplot}R Documentation

Scale: manual

Description

Create a manual scale

Usage

scmanual(plot = .PLOT, variable="x", name="", breaks=NULL, labels=as.character(breaks), grob=function(x) grob_point(x, unique=FALSE))

Arguments

plot plot object to add scale to
variable variable to scale
name name of the scale (used in the legend)
breaks numeric vector of break points
labels character vector of break labels
grob grob function to use when drawing legend

Details

This scale function allows you complete control over the scale.

Supply labels and breaks to produce a legend.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

ggfluctuation for a use


[Package ggplot version 0.4.2 Index]