View source: R/plot_profile_verif.R
plot_profile_verif | R Documentation |
This is a wrapper for plot_point_verif that ensures the coordinate system is properly set up for plots of verification scores for vertical profiles.
plot_profile_verif(
verif_data,
score,
y_axis = "p",
lead_time = NA,
plot_num_cases = TRUE,
num_cases_position = c("right", "left"),
...
)
verif_data |
The verification data. |
score |
The score to be plotted. Must be unquoted. |
y_axis |
The y axis for the plot. Must be unquoted. Be default this is
p, for pressure on the y axis, otherwise it should be set to the column
name in |
lead_time |
The leadtime (or leadtimes) to plot. By default all lead
times in the data are plotted. If more than one lead time is to be plotted,
they must be separated by setting |
plot_num_cases |
Logical of whether to inlclude a panel for the number
of cases. Note that the number of cases will not be plotted if
|
num_cases_position |
The position of the number of cases panel relative to the score panel. For profile scores, this can only be "left", or "right". |
... |
Other arguments for plot_point_verif. |
A ggplot object of vertical profiles of verification scores.
# Not filtering or faceting results in overplotting
plot_profile_verif(verif_data_prf, bias)
# Facet by lead_time
plot_profile_verif(verif_data_prf, bias, facet_by = vars(lead_time))
# Remove rows with few cases using filter_by
plot_profile_verif(
verif_data_prf,
bias,
facet_by = vars(lead_time),
filter_by = vars(num_cases > 1)
)
# Filter to only a single panel
plot_profile_verif(verif_data_prf, bias, filter_by = vars(lead_time == 24))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.