get_optim: Find PDF optim(a)um

Description Usage Arguments Value Examples

View source: R/probability.R

Description

Using an object from the cRacle::dens_obj() function. Create a single density object (i.e., like that produced by cRacle::densform()) where the probability curves correspond to the probability density function of ALL taxa/species from the original set occurring.

Usage

1
get_optim(dens.ob)

Arguments

dens.ob

An object derived from the cRacle::dens_ob() function.

Value

A list with letters and numbers.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
#distr <- read.table('test_mat.txt', head=T, sep ="\t");
#OR:
data(distr);
data(climondbioclim);
extr.raw = extraction(data=distr, clim= climondbioclim, schema='raw');
dens.list.raw <- dens_obj(extr.raw, clim = climondbioclim, bw = 'nrd0', n = 1024);
multiplot(dens.list.raw, names(climondbioclim[[1]]));
and <- and_fun(dens.list.raw);
addplot(and, names(climondbioclim[[1]]), col ='black');
optim.and <- get_optim(and);
abline(v=optim.and$means[paste(names(climondbioclim[[1]]), 'mean', sep = ".") ])

## End(Not run)

rsh249/CRACLE documentation built on Feb. 2, 2022, 11:31 p.m.