View source: R/plot_anomaly_timeseries.R
plot_anomaly_timeseries | R Documentation |
Make condition time series plot
plot_anomaly_timeseries(
x,
region,
fill_color = "#0085CA",
var_y_name = "mean_wt_resid",
var_y_se_name = "se_wt_resid",
var_x_name = "year",
y_title = "Length-weight residual (ln(g))",
format_for = "rmd",
plot_type = "point",
set_intercept = NULL
)
x |
Input data.frame |
region |
Region. AI, BS, or GOA. Character (1L). |
fill_color |
Fill color to use for points. Character (1L). |
var_y_name |
Name of the y variable in the data.frame. Character (1L). |
var_y_se_name |
Name of the standard error for the y variable. Character (1L). |
var_x_name |
Name of the x (time variable). Character (1L). |
y_title |
Y-axis title. Character (1L). |
format_for |
"rmd" or "png" |
set_intercept |
Intercept to use for plots. Numeric (1L). 0 for residual, 1 for VAST relative condition, NULL for VAST a |
A ggplot object of the time series
## Not run:
# EBS anomaly timeseries plot
names(EBS_INDICATOR$FULL_REGION)
plot_anomaly_timeseries(x = EBS_INDICATOR$FULL_REGION,
fill_color = "#0085CA",
var_y_name = "mean_wt_resid",
var_y_se_name = "se_wt_resid",
var_x_name = "year",
y_title = "Length-weight residual (ln(g))",
format_for = "png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.