plot.intRvals: Plot an interval histogram and fit of intRvals object

View source: R/DroppingInterval.R

plot.intRvalsR Documentation

Plot an interval histogram and fit of intRvals object

Description

Plot an interval histogram and fit of intRvals object

Usage

## S3 method for class 'intRvals'
plot(
  x,
  binsize = 20,
  xlab = "Interval",
  ylab = "Density",
  main = "Interval histogram and fit",
  line.col = "red",
  line.lwd = 1,
  ...
)

Arguments

x

An intRvals class object

binsize

Width of the histogram bins

xlab

a title for the x axis

ylab

a title for the y axis

main

an overall title for the plot

line.col

Color of the plotted curve for the model fit

line.lwd

Line width of the plotted curve for the model fit

...

Additional arguments to be passed to the low level hist plotting function

Value

This function returns a list with data, corresponding to the model fit

Examples

data(goosedrop)
dr=estinterval(goosedrop$interval)
plot(dr)
plot(dr,binsize=10,line.col='blue')

adokter/droprate documentation built on May 6, 2022, 2:44 a.m.