WriteOut: Write SpeciesgeocodeR results to the Working Directory

Description Usage Arguments Details Value See Also Examples

View source: R/WriteOut.R

Description

This function writes the results of a speciesgeocodeR analysis to the working directory. Output statistics as .txt files, maps and plots as .pdf and a nexus file for use in phylogenetic analyses.

Usage

1
2
WriteOut(x,writetype = c("all", "BioGeoBEARS", "coexistence", "graphs", 
                         "maps", "nexus","statistics"), areanames = NULL)

Arguments

x

an object of the class spgeoOUT

writetype

a character string. Defines which results should be written to disk. Default is to “all”, see details for other options

areanames

a character string. If the polygons of the spgeoOUT object were derived from a shape file, this column indicates the name of the column used for area names. See the SpeciesgeocodeR documentation for more information, if the polygons of the spgeoOUT object were derived from a text file leave as default.

Details

There are different options for the writetype argument: “all” = all summary tables, plots, maps and a heatplot of species-coexistence if calculated (see CoExClass); “BioGeoBEARS” = a text file in the geography input format of BioGeoBEARS; “coexistence” = the coexistence matrix as table and heatplot “graphs” = summary graphs as pdf files; “maps” = summary maps as .pdf file; “nexus” = write out the species to area classification as nexus file; “statistics” = the summary tables as .txt files.

Value

a set of files in the working directory

See Also

SpeciesGeoCoder, SpGeoCod, SpGeoCodH

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
data(lemurs)
data(mdg_poly)

inp <- ReadPoints(lemurs, mdg_poly)
outp <- SpGeoCodH(inp)
WriteOut(outp)
WriteOut(outp, writetype = "graphs")
WriteOut(outp, writetype = "statistics")
WriteOut(outp, writetype = "nexus")
WriteOut(outp, writetype = "coexistence")

## End(Not run)

speciesgeocodeR documentation built on May 30, 2017, 12:34 a.m.