plot_chop_est: Plot estimates from ends of chopsticks

Description Usage Arguments

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

Description

Plot estimates from ends of chopsticks

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
plot_chop_est(
  model,
  type = NULL,
  x_variable = "temp_trend_scaled",
  where_on_x = "max",
  sort_var = "mean",
  alt_order = F,
  sort_where_on_x = "max",
  legend_position = c(0.7, 0.95),
  point_size = 0.75,
  alpha_range = c(0.5, 0.99),
  add_grey_bars = F,
  name_chop_type = T,
  colours = NULL
)

Arguments

model
type

Select type if more than one interaction in model

x_variable

Which variable on x-axis

where_on_x

Where on the x-axis to select estimate to plot. Options include max, min, mean.

sort_var

Defaults to "mean", current alternatives are "NULL" or "range".

alt_order

Logical, if plots will be ordered by mean for alternate x value.

sort_where_on_x

Can either sort by mean estimate for "max" x_variable or "min" x_variable.

legend_position

Give legend position

point_size

Change point size

alpha_range

Choose alpha for non-sig and sig slopes

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/gfvelocities documentation built on Dec. 22, 2021, 6:45 a.m.