View source: R/plotEmergence.R
plotEmergence | R 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.
plotEmergence(quantiles, emergence, pal = c("steelblue", "firebrick"))
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. |
A ggplot object representing the emergence curve plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.