and_fun: P(A | B) = P(A) * P(B)

Description Usage Arguments Examples

View source: R/cracle_build.R

Description

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

Usage

1
and_fun(dens.oblist, w = FALSE)

Arguments

dens.oblist

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

w

Weight importance of probability functions

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]]));
or <- or_fun(dens.list.raw);
addplot(or, names(climondbioclim[[1]]), col ='black');
and <- and_fun(dens.list.raw);
addplot(and, names(climondbioclim[[1]]), col ='black');

## End(Not run)

rsh249/vegdistmod documentation built on May 28, 2019, 3:31 a.m.