plotEmergence: plotEmergence Plot Emergence Curve with Confidence Intervals....

View source: R/plotEmergence.R

plotEmergenceR Documentation

plotEmergence Plot Emergence Curve with Confidence Intervals. This function creates a ggplot object visualizing the observed and predicted emergence curves along with the confidence intervals for the quantiles.

Description

plotEmergence Plot Emergence Curve with Confidence Intervals. This function creates a ggplot object visualizing the observed and predicted emergence curves along with the confidence intervals for the quantiles.

Usage

plotEmergence(quantiles, emergence, pal = c("steelblue", "firebrick"))

Arguments

quantiles

A data frame containing quantile information for the observed emergence curve. It should have columns 'day', 'qm' (median), 'ql' (lower quantile), and 'qu' (upper quantile).

emergence

A data frame containing emergence probability information for the predicted emergence curve. It should have columns 'day' and 'prob'.

pal

A vector of length two representing the colours used to display the observed (default: 'firebrick') and predicted (default: 'steelblue') values.

Value

A ggplot object representing the emergence curve plot.


Alessandra23/pineR documentation built on Aug. 26, 2023, 8 a.m.