Learn R Programming

speciesgeocodeR (version 1.0-4)

WriteOut: Write SpeciesgeocodeR results to the Working Directory

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

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.

Value

a set of files in the working directory

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.

See Also

SpeciesGeoCoder, SpGeoCod, SpGeoCodH

Examples

Run this code
## 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)

Run the code above in your browser using DataLab