| gdd_plot | R Documentation |
Draws a scatter plot of the developmental rate against temperature with the fitted model. For the linear model the threshold temperature C is marked where the fitted line crosses V = 0; for nonlinear models the fitted curve is drawn and C / Topt / the upper threshold are marked where defined.
gdd_plot(
x,
group = NULL,
show_C = TRUE,
show_Topt = TRUE,
title = NULL,
sub = NULL,
family = "serif",
xlab = "Temperature T (deg C)",
ylab = "Developmental rate V (1/d)",
...
)
x |
A |
group |
Character vector of group names to plot; default is all groups. |
show_C |
Logical; whether to mark the threshold temperature C. Default TRUE. |
show_Topt |
Logical; whether to mark the optimum temperature (nonlinear models only). Default TRUE. |
title |
Plot title. |
sub |
Plot subtitle (bottom line). |
family |
Text font family used for the title, axis labels and
tick labels. Default |
xlab, ylab |
Axis labels. |
... |
Further graphical parameters passed to |
f <- system.file("extdata", "gdd_example.csv", package = "insectecol")
fit <- gdd_calc(gdd_read(f), by = "stage")
gdd_plot(fit, group = "Egg")
## Custom title, subtitle and axis labels (portable English example):
gdd_plot(fit, group = "Egg",
title = "Developmental rate vs temperature",
sub = "Constant-temperature rearing experiment, 2026")
## Chinese titles are rendered through the device's font fallback
## (SimSun on Chinese 'Windows'); note that the plain pdf() device
## cannot embed CJK glyphs on many platforms, so draw on a png or
## cairo device for Chinese titles.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.