hist.swmpr: Plot swmpr using a histogram

Description Usage Arguments Details See Also Examples

View source: R/swmpr_analyze.R

Description

Plot a histogram showing the distribution of a swmpr parameter

Usage

1
2
## S3 method for class 'swmpr'
hist(x, ...)

Arguments

x

input swmpr object

...

other arguments passed to hist

Details

The swmpr method for histograms is a convenience function for the default histogram function. Conventional histogram methods also work well since swmpr objects are also data frames. The input data must contain only one parameter.

See Also

hist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## get data
data(apadbwq)
dat <- subset(apadbwq, select = 'do_mgl')

## histogram using swmpr method
hist(dat)

## change axis labels, plot title
hist(dat, xlab = 'Dissolved oxygen', main = 'Histogram of DO')

## plot using default method
hist(dat$do_mgl)

SWMPr documentation built on Feb. 9, 2018, 6:08 a.m.