Closed FelixMay closed 6 months ago
hey @FelixMay I think I've fixed these now in 31ed149 to the dev
branch
The arguments supplied to plot_rarefaction
have changed. Specifically there is no longer a pooled
argument. This has been superseded by the scales
argument. In the past setting pooled = TRUE
is now carried out by including gamma
as one of the scales
.
library(mobr)
data(inv_comm)
data(inv_plot_attr)
inv_mob_in <- make_mob_in(inv_comm, inv_plot_attr, coord_names = c('x', 'y'))
par(mfrow=c(1,2))
plot_rarefaction(inv_mob_in, 'group', 'uninvaded', 'IBR', log='x')
#generates the following graphic
# note the default scales argument is set to alpha, gamma, and study.
# we discussed best naming practices in https://github.com/MoBiodiv/mobr/issues/255
# spatial, sample-based rarefaction
plot_rarefaction(inv_mob_in, 'group', 'uninvaded', 'sSBR', log = 'x')
# spatially explicit, sample-based rarefaction, thanks to Felix for this addition!
plot_rarefaction(inv_mob_in, 'group', 'uninvaded', 'spexSBR', log = 'x')
Several errors are generated, when I execute the examples from the documentation of
plot_rarefaction
, for example:Created on 2023-03-28 with reprex v2.0.2