| gdd_export_plot | R Documentation |
Draws the degree-day figure of a "gdd" object on a png
device ('ragg' when available, otherwise png)
and writes it to disk - the standalone counterpart of
plot_file = in gdd_analyze, usable on an
existing fit at any time. All plot options of gdd_plot
are supported.
gdd_export_plot(
x,
file = "gdd_plot.png",
group = NULL,
show_C = TRUE,
show_Topt = TRUE,
title = NULL,
sub = NULL,
xlab = NULL,
ylab = NULL,
family = NULL,
width = 10.67,
height = 6,
units = c("in", "cm", "px"),
res = 150,
...
)
x |
A |
file |
Output png path. |
group, show_C, show_Topt, title, sub, xlab, ylab, family |
Plot
options, see |
width, height, units, res |
Physical size and resolution of the
png; the composition is identical at every resolution,
|
... |
Further arguments passed to |
Invisibly, file.
f <- system.file("extdata", "gdd_example.csv", package = "insectecol")
fit <- gdd_calc(gdd_read(f), by = "stage")
gdd_export_plot(fit, tempfile(fileext = ".png"),
title = "Developmental rate vs temperature")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.