if (FALSE) {
library(phyclust, quiet = TRUE)
# For nucleotide
X <- seq.data.toy$org
par(mfrow = c(2, 2))
plotdots(X)
plotdots(X, diff.only = FALSE)
plotdots(X, diff.only = FALSE, label = FALSE)
plotdots(X, fill = TRUE, diff.only = FALSE, label = FALSE)
# With class ids
X.class <- as.numeric(gsub(".*-(.*)", "\\1", seq.data.toy$seqname))
plotdots(X, X.class)
# For SNP
X.SNP <- nid2sid(X)
plotdots(X.SNP, X.class)
}
Run the code above in your browser using DataLab