crop.plus_plot3D: A three dimensional graph of the results of 'LDAcrop.plus'

View source: R/crop.plus_plot3D.R

crop.plus_plot3DR Documentation

A three dimensional graph of the results of LDAcrop.plus

Description

crop.plus_plot3D plots the linear discriminant scores obtained from LDAcrop.plus as a three dimensional graph

Usage

crop.plus_plot3D(data, gcol=NULL, col="black", site="Archaeological", LD=3,
label=NULL, cex.lab =0.65, pos.lab=3)

Arguments

data

The output of LDAcrop.plus

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

Author(s)

Elizabeth Stroud

References

PAPER

See Also

LDAcrop.plus crop.plot2D

Examples

##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)

elizabethastroud/Cropprocessing documentation built on Sept. 27, 2024, 3:03 p.m.