gradientLegendGrob {gmaps}R Documentation

Gradient Legend Grobs

Description

gradientLegendGrob creates a gradient legend grid graphics object.

Usage

gradientLegendGrob<-function(
        at=seq(0,1,length=5),
        axis.min=min(at),
        axis.max=max(at),
        labels=as.character(at),
        col.fun=grey,
        delta=.01,
        vertical=F,                     
        reverse=F,
        name=NULL,
        gp=NULL,
        vp=NULL,
        ...) 
grid.gradientLegendGrob(...)
widthDetails.gradientLegendGrob(x)
heightDetails.gradientLegendGrob(x)

Arguments

at where to place tick marks.
axis.min To specify the axis minimun.
axis.max To specify the axis maximum.
labels specifies specific labels for tick marks.
col.fun function to specify gradient.
delta defines level of precision of gradient, smaller is a finer gradient
vertical controls orientation False implies a horizontal orientation.
reverse controls which side to put the axis on. If true puts the axis on the opposite of the default which depends on the argument for vertical.
name the name of the object.
gp grid graphics parameters, ie. a gpar object.
vp Viewport for the object. used to embed within other objects.
... other parameters passed on, mostly just ignored.
x A GradientLegendGrob object

See Also

USALevelPlot, mapGrob, Color Functions


[Package gmaps version 0.1 Index]