interaction_df: Make prediction dataframe for chopsticks

Description Usage Arguments

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

Description

Make prediction dataframe for chopsticks

Usage

1
2
3
4
5
6
7
8
9
interaction_df(
  data,
  formula,
  species = NULL,
  x_variable = "squashed_temp_vel",
  split_variable = "mean_temp",
  use_quantiles = TRUE,
  N = 3
)

Arguments

data

The data frame used to make the model matrix.

formula

The formula used to make the model matrix.

species

If NULL, loops through all species in raw data.

x_variable

Which variable to plot sticks on.

split_variable

Which variable to plot sticks at the min and max of.

use_quantiles

If TRUE, plots lines for 2.5th and 97.5th quantile of splitting varible values occupied by each species. If FALSE, use min and max values occupied by each species.

N

Number of increments


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