toKML: Transforms the raster into a KML file

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A function to transform the niche model from raster format to KML file.

Usage

1
toKML(modelo, name = "meuKML", zeros = FALSE, open = FALSE)

Arguments

modelo

raster with the distribution model

name

name of the KML file to be generated.

zeros

logical. If FALSE, the zeros of the model are convergent in NA.

open

logical. If TURE, open the KML file in Google Earth.

Details

This function is a wrapper for plotKML the function from the roxygen2 package. See the documentation and vignettes of that package to learn how to use roxygen.

Value

data.frame containing longitude and latitude.

Author(s)

Diogo S. B. Rocha

See Also

plotKML

Examples

1
2
3
fnames <- list.files(path=paste(system.file(package="dismo"), '/ex', sep=''), pattern='grd', full.names=TRUE )
predictors <- stack(fnames)
toKML(modelo = predictors, name = "exemplo")

diogosbr/modelos documentation built on May 9, 2019, 5:23 p.m.