View source: R/plot-pearson-bubbles.R
plot_pearson_bubbles | R Documentation |
Make a bubble plot from the given data
plot_pearson_bubbles(
model,
type = c("fishery", "survey"),
clines = age_bubble_cohorts,
tick_prop = 1,
vjust_x_labels = -1.5,
remove_yr_labels = NULL,
x_labs_mod = 5,
leg_pos = "none",
alpha = 0.3,
xlim = c(1975, year(Sys.Date())),
point_alpha = main_alpha,
point_fill = main_fill,
point_color = "black",
diag_line_color = age_diag_line_color,
diag_line_width = age_diag_line_width,
diag_line_type = age_diag_line_type,
...
)
model |
A model, created by |
type |
1 = Fishery, any other value = Survey |
clines |
An optional vector of years to draw cohort lines through |
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 |
x_labs_mod |
How many years between year labels on the x-axis |
leg_pos |
See the |
alpha |
See |
xlim |
Limits for the x-axis |
... |
Additional parameters passed to |
A ggplot2::ggplot()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.