plot_pred: Plot the predicted model output with data points on top.

Description Usage Arguments Value Note Author(s)

Description

This is just a pre-built function for easy visualization. Other options are possible. Only works with the default gaussian model (integrated and niche model).

Usage

1
2
plot_pred(pars, Tlevel1, Tlevel2, xlab = "Trait level 2",
  ylab = "Trait level 1", legend = TRUE, pch = 19, ...)

Arguments

pars

Parameters of the model obtained with fit_it function (alpha0, alpha 1, beta 0 and beta 1)

Tlevel1

Vector of trait values of the first interaction partner.

Tlevel2

Vector of trait values of the second interaction partner.

xlab

label for x axes

ylab

label for y axes

legend

Logical value indicating if the legend should be plotted. Default = TRUE

pch

Default = 19. Use "." when lots of data available.

...

other parameters to be passed to plot.

Value

A plot

Note

See readme file here: https://github.com/ibartomeus/trait_match

Author(s)

Dominique Gravel and Ignasi Bartomeus


ibartomeus/traitmatch documentation built on May 18, 2019, 1:29 a.m.