View source: R/plot-survey-biomass.R
plot_survey_biomass | R Documentation |
Create a plot of survey biomass as points with error bars
plot_survey_biomass(
model,
index = c("age1", "age2"),
x_lim = c(survey_start_yr, survey_end_yr),
y_lim = c(0, 3),
x_labs_mod = 5,
alpha = 0.3,
tick_prop = 1,
vjust_x_labels = -1.5,
remove_yr_labels = NULL,
point_size = ts_single_model_pointsize,
point_color = ts_single_model_pointcolor,
point_shape = ts_single_model_pointshape,
point_stroke = ts_single_model_pointstroke,
line_width = ts_single_model_linewidth,
line_color = ts_single_model_linecolor,
line_type = ts_single_model_linetype,
...
)
model |
A model, created by |
index |
The index type to plot |
y_lim |
A vector of two for the minimum and maximum values for the y-axis on the plot |
x_labs_mod |
How many years between year labels on the x-axis |
alpha |
The transparency for the error bars (non-squid). Transparency for the squid error bars are 1 |
tick_prop |
A value that the length of the major tick marks are
multiplied by. This proportion must be set by trial and error. Make sure
to change |
vjust_x_labels |
Adjustment to move the x-axis tick labels and label up or down. Negative numbers move down |
remove_yr_labels |
A vector of years to remove the ,labels for in case they are overlapping |
point_size |
The size of the points (See |
point_color |
The R color for the points (See |
point_shape |
The R shape number for the points (See
|
point_stroke |
The stroke value for the points (See
|
line_width |
Width of the error bar lines |
line_color |
R color for the error bar lines |
line_type |
Line type for the error bar lines |
Extra SD is shown for the 2009 "squid year"
A ggplot2::ggplot()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.