Learn R Programming

gstat (version 0.9-4)

bubble: Create a bubble plot of spatial data

Description

Create a bubble plot of spatial data, with options for bicolour residual plots

Usage

bubble(data, xcol = 1, ycol = 2, zcol = 3, fill = TRUE, maxsize = 3,
		do.sqrt = TRUE, pch, col = c(2,3), ...)

Arguments

data
data frame from which x- and y-coordinate and z-variable are taken
xcol
x-coordinate column number
ycol
y-coordinate column number
zcol
z-variable column number
fill
logical; if TRUE, filled circles are plotted (pch = 16), else open circles (pch = 1); the pch argument overrides this
maxsize
cex value for largest circle
do.sqrt
logical; if TRUE the plotting symbol area (sqrt(diameter)) is proportional to the value of the z-variable; if FALSE, the symbol size (diameter) is proportional to the z-variable
pch
plotting character
col
colours to be used; numeric vector of size two: first value is for negative values, second for positive values.
...
arguments, passed to xyplot

Value

  • returns (or plots) the bubble plot

See Also

xyplot, mapasp

Examples

Run this code
data(meuse)
bubble(meuse, max = 2.5, main = "cadmium concentrations")

Run the code above in your browser using DataLab