View source: R/plot_stratum_stacked_bar.R
plot_stratum_stacked_bar | R Documentation |
Make condition time series stacked bar plot
plot_stratum_stacked_bar(
x,
region,
fill_palette = "BrBG",
var_y_name = "mean_wt_resid",
var_x_name = "year",
var_group_name = "stratum",
fill_title = "Stratum",
y_title = "Length-weight residual (ln(g))"
)
x |
Input data.frame |
region |
Region. AI, BS, or GOA. Character (1L). |
var_y_name |
Name of the y variable in the data.frame. Character (1L). |
var_x_name |
Name of the x (time variable). Character (1L). |
var_group_name |
Name of the variable to use for grouping (i.e., stratum). Character (1L). |
fill_title |
Name of the fill variable to use for plotting. Character (1L). |
y_title |
Y-axis title. Character (1L). |
var_y_se_name |
Name of the standard error for the y variable. Character (1L). |
A ggplot object of the time series
## Not run:
# EBS strata stacked bar plot
names(EBS_INDICATOR$STRATUM)
plot_stratum_stacked_bar(x = EBS_INDICATOR$STRATUM,
region = "BS",
fill_palette = "BrBG",
var_y_name = "stratum_resid_mean",
var_x_name = "year",
var_group_name = "stratum",
fill_title = "Stratum",
y_title = "Length-weight residual (ln(g))")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.