crop.plot3d: A three dimensional graph of the results of 'LDAcrop.pro'

crop.plot3DR Documentation

A three dimensional graph of the results of LDAcrop.pro

Description

crop.plot3D plots the linear discriminant scores obtained from LDAcrop.pro as a three dimensional graph

Usage

crop.plot3D(x,  gcol=NULL, col= "black",site ="Site",label=NULL, cex.lab =0.65, pos.lab=3)

Arguments

x

the dataframe containing the discriminant scores obtained from LDAcrop.pro

col

Symbol colour of archaeobotanical data

gcol

Symbolcolours of the ethnographical crop processing groups written as a list eg. c("red", "green"...) etc

site

The name that the archaeobotanical data will be labelled as in the legend

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

PUT IN PAPER REFERENCE

Examples

##example dataset

LD1<-runif(40, min= -0, max=3)
LD2<-runif(40, min = -2, max=4)
LD3<-runif(40, min =-4, max=-1)
Study<-sample(1:3, 40, replace=TRUE)
data<-data.frame(Study,LD1, LD2, LD3)

## use

crop.plot3D(data)

## without defaults

crop.plot3D(data, gcol = c("black", "grey", "grey48", "grey89"),
col = "red", site = "Example")

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