coef_scatterplot: Plot coefficients against species traits

Description Usage Arguments

View source: R/plot-coefs.R

Description

Plot coefficients against species traits

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
coef_scatterplot(
  model_coefs,
  x,
  coef = c("temp_trend_scaled", "DO_trend_scaled"),
  group = "age",
  point_size = 0.75,
  point_alpha = 0.65,
  point_shapes = c(21, 19),
  pointrange = T,
  regression = T
)

Arguments

model_coefs

Coefficient dataframe joined with species traits.

x

Trait variable for x-axis.

coef

Coefficient to plot.

group

Colour by grouping.

point_size
point_alpha
point_shapes

Vector of shapes. Defaults to open and closed circles.

regression

Logical for adding regression line.


pbs-assess/gfranges documentation built on Dec. 13, 2021, 4:50 p.m.