AR.barplot | R Documentation |
Plots a barplot with standardized allelic richness for n equal to the smallest population size in the data. Uses the list object produced by rgenotypes.arich as input values. 95
AR.barplot(Rlist,lwd=10,col="black",b.bar.x=5,popsize=0.7,error.bar=F)
Rlist |
a list like the one produced by rgenotypes.arich with elements R, A and A.sd |
lwd |
the width of each bar. The plot used type="h" to produce the bars so this is the lwd used for R line width |
col |
a vector of color names for each population. Defaults to black |
b.bar.x |
the space in x plotting units between consecutive bars. Defaults to 5. |
popsize |
the size for pop names printed in the x axis, controled by par(cex=popsize). Defaults to 0.7. |
error.bar |
A logical value to print 95 |
Once rgenotypes.arich produces the randomized data set with permutation of n, this function can be used to plot a barplot of allelic richness for n equal to the smallest population size across all sites. A vector of colors can be used to plot different populations' bars with different color.
a barplot of Allelic richness
Alberto F, Arnaud-Haond S, Duarte CM, Serrao EA (in press) Genetic diversity of a clonal angiosperm near its range limit: the case of Cymodocea nodosa in the Canary Islands. Marine Ecology Progress Series
Filipe Alberto,
Department of Biological Sciences,
University of Wisconsin-Milwaukee
rgenotypes.arich
,allele.genotype.plot
{
data(Exdata)
Exresults<-rgenotypes.arich(Exdata,3)
AR.barplot(Exresults, error.bar=T,lwd=50,b.bar.x = 1)
}
{ dplot }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.