A mingle-mangle of functions for R, most of them related to publications
done by the maintainer. Thus would you like to implement some plots or
analyses done in one of my publications? Then, Lexiguel
is the proper
place to exchange requests and answers.
Thanks to Kerstin, my girlfriend, for naming this package.
You may have previously installed the R-package devtools. Then execute following commands in your R-session:
library(devtools)
install_github("kamapu/Lexiguel")
The function sloss
calculates the cumulative species number and area
from the smallest to the largest unit and vice versa (Quinn &
Harrison 1988). A plot method is
available for the respective output objects.
## Load gaps from the Robinson Crusoe Island
library(Lexiguel)
data(rc_gaps)
data(rc_gaps.env)
## Calculation of curves
rc_curves <- sloss(rc_gaps, rc_gaps.env, area)
## Plot the curves
plot(rc_curves, show.legend=TRUE)
The functions shadowplot
and stringplot
are alternatives to
boxplot
and violin.plot
for categorical (ordinal) variables. Such
plots shows the relative frequency of single classes among sampling
units, as in the case of WET-health scores (Beuel et al. 2016).
## Example in shadowplot help
library(Lexiguel)
data(WHscores)
shadowplot(WET_veg ~ Landuse, WHscores, start=0, end=10,
col=c("orangered","palegreen","orange","lightblue"))
stringplot(WET_veg ~ Landuse, WHscores, lwd=3, at=1)