# \donttest{
data(datangkor)
## contingency table
cont <- datangkor$contingency
## default
seriograph(cont)
seriograph(cont, show = "EPPM")
seriograph(cont, show = "frequency")
## Don't allow permutation of columns
seriograph(cont, permute = FALSE)
## insert Hiatus (position, 1 -> after first row from bottom: oldest)
seriograph(cont,insert = 2)
seriograph(cont,insert = c(2,3))
## insert costum label element
insert <- list(
position = c(2,3),
label = c("Hiatus.100years","Missing data")
)
seriograph(cont, insert = insert)
## change order with cluster name (letters on dendrogram) to sort them in a chronological order
seriograph(cont,order=c("AI03","AI09","AI01","AI02","AI04","APQR01","AO05",
"AO03","AI05","AO01","APQR02","AI07","AI08","AO02","AI06","AO04","APQR03"))
## by omitting the row names, you delete the corresponding rows
seriograph(cont,order=c("AI09","AI06","AI08","AI05","AI07","AI04","AI03"))
## Compiègne data from Desachy (2004)
compiegne = data.frame(
A=c(13740, 13540, 12490, 6940, 6490),
B=c(375, 1520, 5255, 2880, 2350),
C=c(8270, 10110, 4220, 5800, 6900),
D=c(250, 740, 980, 3400, 2745),
E=c(20, 1230, 1395, 1510, 670),
F=c(10, 635, 1415, 2280, 3020),
G=c(40, 265, 440, 1080, 950),
H=c(80, 400, 680, 2840, 6700),
I=c(0, 0, 30, 620, 340),
J=c(5, 105, 580, 2075, 2660),
K=c(1740, 7210, 6750, 2130, 1080),
L=c(460, 1785, 5930, 2410, 570),
M=c(0, 410, 350, 910, 740),
N=c(1510, 565, 160, 410, 190),
O=c(350, 310, 10, 310, 985),
P=c(0, 450, 275, 410, 50)
)
rownames(compiegne) <- c("Période 5", "Période 4", "Période 3", "Période 2", "Période 1")
serio = seriograph(compiegne)
serio$contingency
serio$frequency
serio$EPPM
serio$EPM
# }
Run the code above in your browser using DataLab