Learn R Programming

SSN (version 1.1.8)

boxplot.SpatialStreamNetwork: Box-and-whisker plots for data within SpatialStreamNetwork objects.

Description

The boxplot function creates box-and-whisker plots for data within SpatialStreamNetwork-classobjects.

Usage

"boxplot"(x, variable, ...)

Arguments

x
an object of class SpatialStreamNetwork-class
variable
the variable (in quotes) for which the boxplots are being created, or a formula, such as y ~ grp, where y is a numeric vector of data values and grp is a grouping of variables (usually a factor).
...
see boxplot for additional arguments

Value

A graph is produced, and a list with the following components:

Details

boxplot is a generic function that has been adapted for SpatialStreamNetwork-classobjects. Use names to get a list of the variable names within the SpatialStreamNetwork object; the boxplot boxplot will only work for the observed data set.

References

see boxplot

See Also

boxplot.stats

Examples

Run this code

library(SSN)
# NOT RUN 
# mf04 <- importSSN(system.file("lsndata/MiddleFork04.ssn", 
#	        package = "SSN"), o.write = TRUE)
# use SpatialStreamNetwork object mf04 that was already created
data(mf04)

boxplot(mf04, "Summer_mn")
boxplot(mf04, Summer_mn ~ STREAMNAME, main = "Summer_mn ~ STREAMNAME", 
      col = "gray", xlab = "STREAMNAME", ylab = "Summer Mean Temperature")

Run the code above in your browser using DataLab