
plot.SpatialStreamNetwork
is a generic plot function that has been adapted for
SpatialStreamNetwork objects that have been created in SSN.
"plot"(x, VariableName=NULL, color.palette= NULL, nclasses = NULL, breaktype = "quantile", brks = NULL, PredPointsID = NULL, add = FALSE, addWithLegend=FALSE, lwdLineCol = NULL, lwdLineEx = 1, lineCol = "black", ...)
SpatialStreamNetwork
.
palette
for many
ways to create palettes.
par
).
plot.SpatialStreamNetwork
function creates a map showing data locations that
can be color-coded according to the values of observed variables. Prediction
locations can also be added to existing plots of observed values.
SpatialStreamNetwork-class
, plot
library(SSN)
# Create a SpatialStreamNetork object that also contains prediction sites
#undebug(importSSN)
mf04p <- importSSN(system.file("lsndata/MiddleFork04.ssn",
package = "SSN"), predpts = "pred1km", o.write = TRUE)
names(mf04p)
summary(mf04p)
#generic plotting includes stream network and observed locations
plot(mf04p)
#plot including the color coding the response variable
plot(mf04p, "Summer_mn")
#plot using user-defined breakpoints
plot(mf04p, "Summer_mn", breaktype = "user", brks = seq(8,16,by=1))
#pass normal plotting arguments, such as xlab and ylab, to plot
plot(mf04p, "Summer_mn", xlab = "x-coordinate", ylab = "y-coordinate")
# plot observations and prediction values
plot(mf04p, "Summer_mn", cex = 2, xlab = "x", ylab = "y")
plot(mf04p, PredPointsID = "pred1km", addWithLegend = TRUE)
Run the code above in your browser using DataLab