crop.triplot | R Documentation |
Triangular diagram showing the percentages of weeds to grains to rachis of the entered data. The funcation create two side by side plots, with the first showing the ethnographic data: crop.tri.data
and the second the entered archaeobotanical data.
crop.triplot(grain, rachis, weeds, pch=5, col="black", bg="black", sample=NULL,
samplelabel="Sample",legendlabel="Samples",cpch=NULL, cbg=NULL, ccol=NULL)
grain |
the column containing the amount of free threshing cereal grain in each sample |
rachis |
the column containing the amount of free threshing cereal rachis in each sample |
weeds |
the column containing the amount of weed seeds in each sample |
pch |
the symbol for the archaeobotanical samples, default is 5 |
col |
the colour for the archaeobotanical samples, default is black |
bg |
the colour the background of the symbol, default is black |
sample |
row number of the sample/s to be labelled |
samplelabel |
label of the sample/s entered in the sample argument to be shown on graph |
legendlabel |
the name of the archaeobotanical assemblage to appear in the legend |
cpch |
the symbols of the model data as a list |
cbg |
the background colours of the symbols of the model data |
ccol |
the colours of the symbols of the model data |
Elizabeth Stroud
Jones, G. (1990) The application of present-day cereal processing studies to charred archaeobotanical remains. Circaea 6(2):91-96
##example data
samples<-c("s1","s2","s3","s4","s5","s6","s7","s8","s9","s10")
grain<-runif(10, min= 5, max=100)
rachis<-runif(10, min= 1, max=50)
weeds<-runif(10, min= 50, max=200)
data<-data.frame(samples,grain,rachis,weeds)
##usage
crop.triplot(grain=data$grain, rachis=data$rachis, weeds=data$weeds, col="blue")
## label specific sample
crop.triplot(grain=data$grain, rachis=data$rachis, weeds=data$weeds, col="blue",
sample=2, samplelabel="s2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.