View source: R/plot-development-diagram.R
plot_development_diagram | R Documentation |
A development diagram illustrates the beetles' development of all appearing generations within a year.
plot_development_diagram(
.phenos,
.station = prop_stations(.phenos[[1]])[1],
.generations = NULL,
.colors = barrks_colors("diagram_lines"),
.fill = barrks_colors("diagram_fill"),
.labels = barrks_labels("diagram"),
.legend_col = TRUE,
.legend_lty = TRUE,
.group = TRUE,
.minmax_only = FALSE,
.fun_bg = NULL,
.lty = "solid",
.lwd = 2,
.date_split = NULL,
.date_stop = NULL,
.lty2 = "dotted",
.lwd2 = 2,
.fill2 = NA,
...
)
.phenos |
List of (named) phenology objects or a single phenology that will be
plotted (see |
.station |
Pass a character vector to choose a station assigned to |
.generations |
Generations that will be shown. |
.colors , .fill , .labels |
Character vectors. Change the line colors, fill or labels of the generations starting from the first generation followed consecutively by elements for the other generations (including sister broods). |
.legend_col , .legend_lty |
Manipulate the appearance of the legends for
colors and line types. Pass |
.group |
Select the phenology objects that will be used to draw the filling. It can be
a character vector of the phenology names, an integer vector of the phenology
numbers, or |
.minmax_only |
If |
.fun_bg |
Function to draw a background. |
.lty , .lwd |
Use specific line types and line widths.
Vectors of the same length as |
.date_split , .lty2 , .lwd2 , .fill2 |
When |
.date_stop |
If specified, no data will be plotted after the respective date. |
... |
Parameters passed to |
None
stations
# calculate phenology
p <- phenology('phenips-clim', barrks_data('stations'), .quiet = TRUE)
# plot development diagram of the station 'Mannheim'
plot_development_diagram(p, 'Mannheim', .lwd = 4, .legend_lty = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.