if (FALSE) {
# 3000 data point hypervolume
data(quercus)
hv_quercus = hypervolume(quercus[,c(2,3)])
# the seq argument is equivalent to a length 30 vector {10, 139, ... , 3649, 3779}
# 6hr sequential runtime
quercus_bootstrap_seq <- resample('quercus_bootstrap_seq',
hv_quercus,
method = 'bootstrap seq',
points_per_resample = "sample_size",
seq = floor(seq(10, 3779, length.out = 30)),
cores = 20)
# Compatible with ggplot syntax when used with as_table = FALSE
hypervolume_funnel(quercus_bootstrap_seq,
title = 'Resampled volumes of Quercus',
func = get_volume) +
geom_line(aes(y = get_volume(hv_quercus))) +
ylab("Volume")
}
Run the code above in your browser using DataLab