View source: R/crop.plus_plot3D.R
crop.plus_plot3D | R Documentation |
LDAcrop.plus
crop.plus_plot3D plots the linear discriminant scores obtained from LDAcrop.plus
as a three dimensional graph
crop.plus_plot3D(data, gcol=NULL, col="black", site="Archaeological", LD=3,
label=NULL, cex.lab =0.65, pos.lab=3)
data |
The output of |
gcol |
The colour of the crop processing stages' symbols |
col |
The colour of the archaeobotanical samples symbols |
site |
The name for the archaeobotanical samples - to appear in the legend |
LD |
Whether plotting the first three discriminant functions or the 4th has been substituted for the 3rd function (response is LD=4) |
label |
the name of the samples to be labelled on the graph |
cex.lab |
the size of the label following text3d |
pos.lab |
the position of the label following text3d |
Elizabeth Stroud
PAPER
LDAcrop.plus crop.plot2D
##Random data
BHH<-runif(40, min=0, max=7)
BFH<-runif(40, min=0, max=24)
SHH<-runif(40, min=1, max=13)
SHL<-runif(40, min=0.5, max=17)
SFH<-runif(40, min=1, max=22)
SFL<-runif(40, min=1, max=8)
Sample<-sample(1:40, 40, replace=FALSE)
data<-data.frame(Sample,BHH,BFH,SHH,SHL,SFH,SFL)
results<-LDAcrop.plus(data)
## Usage
crop.plus_plot3D(results)
crop.plus_plot3D(results, LD=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.