#Shepard diagram
library(rysgran)
data(camargo2001)
tab<-camargo2001
percent <- class.percent(tab, mode="total")
rysgran.ternary (x = percent[2:4], method = "shepard")
#
#Pejrup diagram
library(rysgran)
data(camargo2001)
tab<-camargo2001
percent <- class.percent(tab, mode="total")
rysgran.ternary (x = percent[2:4], method = "pejrup")
#
#Shepard diagram with show.labels
library(rysgran)
data(camargo2001)
tab<-camargo2001
percent <- class.percent(tab, mode="total")
rysgran.ternary (x = percent[2:4], method = "shepard",
z = NULL, show.labels = TRUE, label.points = FALSE,
labels = NULL, cex.labels = 0.8, cex.axis = 1,
col.labels = "black", col.axis = "black")
#
#Shepard diagram with label.points
library(rysgran)
data(camargo2001)
tab<-camargo2001
percent <- class.percent(tab, mode="total")
rysgran.ternary (x = percent[2:4], method = "shepard",
z = NULL, label.points = TRUE, labels = NULL,
show.names = TRUE, show.legend = TRUE, cex.labels = 0.8,
cex.points = 1.5, cex.axis = 1, cex.names = 0.8,
col.names = "gray", col = "black", col.labels = "black",
pos = 1, pch = 20)
#
#Shepard diagram with Sorting as bubbles
library(rysgran)
data(camargo2001)
tab<-camargo2001
percent <- class.percent(tab, mode="total")
rys <- gran.stats(tab , method="folk")
rysgran.ternary (x = percent[2:4], method = "shepard",
z = rys$Sorting, label.points = FALSE, labels = NULL,
z.cex.range = c(0.5,4), cex.labels = 0.8, cex.axis = 1,
cex.names = 0.8, col = "blue", pos = 1, pch = 20)Run the code above in your browser using DataLab