level.plot: Level plot for gridded data

View source: R/spkde.R

level.plotR Documentation

Level plot for gridded data

Description

Draws a level plot given a SpatialPixelsDataFrame, an index and a shading scheme.

Usage

level.plot(grd, shades, index=1, add=FALSE)

Arguments

grd

A spatialPixelsDataFrame object.

shades

A shading scheme created by shading or auto.shading. If omitted, chosen automatically from grd.

index

Index giving the variable in grd to plot.

add

Whether to add the level plot to an existing plot.

Details

The function returns no value, but draws a level plot on the current graphics device as a side effect.

Value

None (see above).

Author(s)

Chris Brunsdon, Binbin Lu

Examples

  
# Data for New Haven to use in example
data(newhaven)
# Do the KDE
breach.dens = kde.points(breach,lims=tracts)
# Plot the result
level.plot(breach.dens)

GISTools documentation built on Oct. 3, 2024, 1:08 a.m.