plot-NBmodel: An S4 method for SpNaBaModel class object.

Description Usage Arguments Details Author(s) Examples

Description

A plot methods for class "SpNaBaModel".

Usage

1
plotNB(nbmodel, ...)

Arguments

nbmodel

A SpNaBaModel object from NBModel function.

...

Parameters passed to other functions (See par).

Details

This function creates a list with five ggplot objects.

The first element of the list is called 'Smp_density'. It shows an histogram of the density of cell's occurrence per specie. In this sense, the x axis of this graph represents the number of cells with an occurrence and the y axis shows the density of variables (species) in that range of cell's occurrence.

Author(s)

Enrique Del Callejo Canal ([email protected]).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
library(sp)
library(rgeos)
data(Mex0)
data(mammals)

# Generating de grid from Mex0 data
Mex0.grd<-grd_build(Mex0)

# Identification points of mammals with colnames = NULL.
x.mat<-id_pts(grd = Mex0.grd, pts = mammals)

# Creando el modelo
x.model <- NBModel(x.mat, target = 1:10, fac.lap = 0.01)

# Graphic report
x.plots <- plotNB(x.model)

edelcallejoc/rspecies documentation built on Dec. 17, 2018, 9:15 a.m.