plot.Frequency: Generate base R histogram from object of class 'Frequency'.

Description Usage Arguments Value Examples

View source: R/frequency.R

Description

Plot a histogram using hist (esentially calling next method on plot, which calls plot.histogram). Display contains sample size along with some descriptive statistics.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'Frequency'
plot(
  x,
  ...,
  med = TRUE,
  xTL = TRUE,
  yTL = TRUE,
  xTitle = TRUE,
  yTitle = TRUE,
  addN = TRUE,
  maxY = NULL
)

Arguments

x

An object of class Frequency (& histogram).

...

Passed on to other methods.

med

Logical. If true (default) plot will display vertical line denoting median value.

xTL

Logical. If true (default) plot will include x-axis tick labels.

yTL

Logical. If true (default) plot will include y-axis tick labels.

xTitle

Logical. If true (default) plot will include x-axis title.

yTitle

Logical. If true (default) plot will include y-axis title.

addN

Logical. If true (default) plot will include 'N' value outside plot area (top left).

maxY

Numeric. If null (default) plot uses max(x[["density"]]).

Value

Displays a histogram using frequency item in x.

Examples

1
2
#freq <- Frequency(trammel_catch[["FL"]], binWidth = 5)
#plot(freq)

jasondubois/sportfish documentation built on July 3, 2020, 1:01 p.m.