plot_pearson_bubbles: Make a bubble plot from the given data

View source: R/plot-pearson-bubbles.R

plot_pearson_bubblesR Documentation

Make a bubble plot from the given data

Description

Make a bubble plot from the given data

Usage

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,
  ...
)

Arguments

model

A model, created by create_rds_file()

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 so the labels are not overlapping the lines or are too far away from the lines

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 leg_pos parameter of ggplot2::theme()

alpha

See ggplot2::geom_point()

xlim

Limits for the x-axis

...

Additional parameters passed to ggplot2::geom_point(), ggplot2::geom_segment() and ggplot2::theme()

Value

A ggplot2::ggplot() object


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.