Data file, which it may be obtained using DataManager of ModestR http://www.ipez.es/ModestR. See details section for the explanation of the format of the data.
var
Variable with the names of the factors.
envar
Factor.
Interval
Variable with the intervals.
Interval.Value
Variable with the values of the intervals.
Pre
Values of intervals for the presences.
Extent
Values of intervals for the extent.
Level
Optionally, a taxonomic level may be selected, i.e., class, family, order, genus or species.
Taxon
Optionally, it is possible to work only with a selected species, just specifying the name of the taxon or taxa selected within the taxonomic level selected in the argument Level, i.e., name of the order, family, etc. Can be a vector, so several taxa.
ResetPAR
If it is FALSE, the default condition of the function PAR is not placed and maintained those defined by the user in previous graphics.
PAR
It accesses the function PAR, allowing to modify different aspects of the graph.
PLOT
It allows to specify the characteristics of the function plot.default.
XLAB
Legend of X axis.
YLAB
Legend of Y axis.
MAIN
Main title of the plot. Default is the name of the environmental factor selected in the argument envar.
COLOR
Vector with the color of the presences and absences.
XLIM
Vector with the limits of the X axis.
YLIM
Vector with the limits of the Y axis.
TYPE
Type of plot. The following values are possible: "p" for points, "l" for lines, "b" for both points and lines, "c" for empty points joined by lines, "o" for overplotted points and lines, "s" and "S" for stair steps and "h" for histogram-like vertical lines. Finally, "n" does not produce any points or lines.
LTY
The line type. Line types can either be specified as an integer (0=blank, 1=solid (default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings "blank", "solid", "dashed", "dotted", "dotdash", "longdash", or "twodash", where "blank" uses invisible lines (i.e., does not draw them).
PCH
Graphic symbol.
LEGEND
It allows to include a legend to the graph.
AXIS
It allows to add axes to the graph.
MTEXT
It allows to add text on the margins of the graph.
TEXT
It allows to add text in any area of the inner part of the graph.
Details
The CSV file required in the argument data has the following format: class, order, family, genus and species, along with the frequencies for presence and for the extent. This file may be obtained using ModestR (GarcÃa-Roselló et al., 2013; available at the web site http://www.ipez.es/ModestR using the following menu: Export checked maps/To RWizard Applications/To SPEDInstab. The default name of this file obtained from ModestR is "Instability.CSV".
FUNCTIONS
The plot is performed with the function plot.default of base graphics package
EXAMPLE
In the example, it was estimated the instability index for several species of the orders Amiiformes and Perciformes (Guisande et al., 2010; Pelayo-Villamil et al., 2015). It is shown the percentiles of the variable altitude for presence and the extent.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(SPEDInstabR)
Loading required package: beanplot
Loading required package: raster
Loading required package: sp
Loading required package: plotrix
Loading required package: TeachingDemos
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SPEDInstabR/PreExt.Rd_%03d_medium.png", width=480, height=480)
> ### Name: PreExt
> ### Title: COMPARISON OF THE FREQUENCIES OF A FACTOR BETWEEN PRESENCES AND
> ### THE EXTENT
> ### Aliases: PreExt
> ### Keywords: PreExt
>
> ### ** Examples
>
>
> data(Instability)
>
> PreExt(data=Instability, var="Variable", envar="Altitude", Interval="Interval",
+ Interval.Value="Interval.Value", Pre="Presence.Prop", Extent="Extent.Prop",
+ XLAB="Altitude (m)")
Error in dev.new() : no suitable unused file name for pdf()
Calls: PreExt -> par -> resetPar -> dev.new
Execution halted