plot_chopstick_slopes: Plot slopes from chopstick plots

Description Usage Arguments

View source: R/plot-vocc-interaction.R

Description

Plot slopes from chopstick plots

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
plot_chopstick_slopes(
  slopedat,
  type = NULL,
  x_variable = "temp_trend_scaled",
  legend_position = c(0.7, 0.95),
  hack = F,
  imm_slopes = NULL,
  add_global = T,
  global_col = "gray30",
  point_size = 0.75,
  alpha_range = c(0.4, 0.99),
  add_grey_bars = F,
  name_chop_type = T,
  order_by_chops = NULL,
  colours = NULL
)

Arguments

slopedat

Df from chopstick_slopes function

type

Select type if more than one interaction in model

x_variable

Which variable on x-axis

legend_position

Give legend position

hack

Logical for comparing with hacked slope estimate w interaction SE

imm_slopes

Add immature data

add_global

Logical for including global slope estimates

global_col

Set colour for global slopes

point_size

Change point size

alpha_range

Set alapha values based on slope significance

add_grey_bars

Add grey stripes to alternating species

name_chop_type

Add type to chopstick name in legend

colours

Add custom colours


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