View source: R/plot_filtered_data.R
plot_filtered_data | R Documentation |
Plot filtered data with removed data greyed out
plot_filtered_data(
dat,
dat_filtered,
trend_threshold = 4,
superchill_threshold = -0.7,
heat_threshold = 18,
colour_palette = NULL,
legend_drop = FALSE,
legend_position = "right",
ylims = NULL,
date_axis_name = "Date",
date_breaks_major = NULL,
date_breaks_minor = NULL,
date_labels_format = NULL,
plotly_friendly = FALSE,
alpha = 1
)
dat |
Data frame with at least three columns: |
dat_filtered |
Filtered data, i.e. the result of
|
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
|
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 |
ylims |
Numeric vector of limits for the y-axis. |
date_axis_name |
Name for the x-axis. |
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., |
plotly_friendly |
Logical argument. If TRUE, y-axis label is set to a
plotly-friendly title ("Temperature (deg C)"). If FALSE,
|
alpha |
Transparency for the heat stress and superchill shaded boxes. |
Returns a ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.