Learn R Programming

sp (version 2.1-4)

panel.spplot: panel and panel utility functions for spplot

Description

panel functions for spplot functions, and functions that can be useful within these panel functions

Usage

spplot.key(sp.layout, rows = 1, cols = 1)
SpatialPolygonsRescale(obj, offset, scale = 1, fill = "black", col = "black",
	plot.grid = TRUE, ...)
sp.lines(obj, col = 1, ...)
sp.points(obj, pch = 3, ...)
sp.polygons(obj, col = 1, fill = "transparent", ...)
sp.grid(obj, col = 1, alpha = 1,..., at = pretty(obj[[1]]), col.regions = col)
sp.text(loc, txt, ...)
sp.panel.layout(lst, p.number, ...)
bbexpand(x, fraction)

Arguments

sp.layout

list; see spplot for definition

rows

integer; panel row(s) for which the layout should be drawn

cols

integer; panel column(s) for which the layout should be drawn

obj

object of class SpatialPolygons-class for SpatialPolygonsRescale; of class SpatialLines-class, Lines-class or Line-class for sp.lines of a class that has a coordinates-methods for sp.points; of class SpatialPolygons-class for sp.polygons. When obj is character, the actual object is retrieved by get(obj) before its class is evaluated.

offset

offset for shifting a Polygons object

scale

scale for rescaling

fill

fill color

col

line color

plot.grid

logical; plot through grid functions (TRUE), or through traditional graphics functions (FALSE)

pch

plotting character

at

numeric; values at which colour breaks should occur

col.regions

colours to fill the grid cells, defaults to col

loc

numeric vector of two elements

txt

text to be plotted

alpha

alpha (transparency) level

lst

sp.layout argument, see spplot

p.number

panel number; in a panel, panel.number() should be passed to this argument

x

length two numeric vector, containing a range

fraction

fraction to expand the range by

...

arguments passed to the underlying panel, lattice or grid functions

Author

Edzer Pebesma, edzer.pebesma@uni-muenster.de

References

https://edzer.github.io/sp/ has a graph gallery with examples with R code.

See Also

spplot, spplot-methods