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
plot_chop_est(
  model,
  type = NULL,
  x_variable = "temp_trend_scaled",
  where_on_x = "max",
  sort_var = "mean",
  alt_order = F,
  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 T plots will be ordered by mean for "where_on_x" = "max".

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/gfranges documentation built on Dec. 13, 2021, 4:50 p.m.