View source: R/plot_temperature_at_depth.R
plot_temperature_at_depth | R Documentation |
Plot temperature coloured by depth
plot_temperature_at_depth(
dat,
trend_threshold = 4,
superchill_threshold = -0.7,
heat_threshold = 18,
facet_var = NULL,
colour_palette = NULL,
legend_drop = FALSE,
legend_position = "right",
date_breaks_major = NULL,
date_breaks_minor = NULL,
date_labels_format = NULL,
ncol = 1,
nrow = NULL,
alpha = 1,
plotly_friendly = FALSE
)
dat |
Data frame with at least three columns: |
trend_threshold |
The threshold for "trending up". Default is
|
superchill_threshold |
The threshold for "superchill". Default is
|
heat_threshold |
The threshold for heat stress. Default is
|
facet_var |
Variable(s) defining faceting groups. Variables must be
column(s) in |
colour_palette |
Optional vector of hex colors onto which |
legend_drop |
Logical argument indicating whether to drop unused depths
from the legend. Default is |
legend_position |
Position of the legend ("none", "left", "right",
"bottom", "top"). Default is |
date_breaks_major |
Character string specifying intervals for major
breaks on the x-axis, e.g., |
date_breaks_minor |
Character string specifying intervals for major
breaks on the x-axis, e.g., |
date_labels_format |
Character string specifying the format of the date
labels on the x-axis, e.g., |
ncol |
Number of columns for faceted figure. Default is |
nrow |
Number of rows for faceted figure. Default is |
alpha |
Transparency for the heat stress and superchill shaded boxes. |
plotly_friendly |
Logical argument. If TRUE, y-axis label is set to a
plotly-friendly title ("Temperature (deg C)"). If FALSE,
|
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.