# Posts tagged "R":

## How to define custom line types with R?

There are already six default line types defined in R; but how can one create a new, custom line type? It’s quite easy to do this in Python… and just as easy to do in R!

(...)## How to perform a NPMANOVA with R?

Performing a non-parametric multivariate analysis of variance (NPMANOVA), also known as permutational multivariate analysis of variance (PERMANOVA), is relatively easy thanks to the function `adonis()`

implemented in the R package `vegan`

. In this blog post :

## How to know if an individual specimen may be a member of a given reference population?

Let’s say you have one given specimen of unknown origin or species. Although you do not know precisely to which group this individual belongs, you have several hypotheses; e.g., you think that this individual might belong to populations A or B, but is certainly not a member of population C. In this post, we will illustrate some possible methods to assess the credibility of those hypotheses, depending on the data you were able to collect (or you are willing to use).

(...)## Comment boxes for R scripts within Emacs

Some people like to insert nice comment boxes in their R scripts. Using Emacs and ESS, this is easy to achieve thanks to the lisp function `comment-box`

.

## Comparing correlation coefficients with R

In biological anthropology, a common problem is to compare correlation coefficients between two pairs of variables. Here is a motivating example, with a small artificial dataset.

(...)## Some useful R ressources for archaeologists and anthropologists

*“R packages, like friends, should be few and well chosen.”* — Approximately by Charles Caleb Colton.