# NOT RUN {
####################################
# Use data from R package ccChooser
####################################
library(ccChooser)
data("dactylis_CC")
data("dactylis_EC")
ec <- cbind(genotypes = rownames(dactylis_EC), dactylis_EC[, -1])
ec$genotypes <- as.character(ec$genotypes)
rownames(ec) <- NULL
ec[, c("X1", "X6", "X7")] <- lapply(ec[, c("X1", "X6", "X7")],
function(x) cut(x, breaks = 4))
ec[, c("X1", "X6", "X7")] <- lapply(ec[, c("X1", "X6", "X7")],
function(x) factor(as.numeric(x)))
head(ec)
core <- rownames(dactylis_CC)
quant <- c("X2", "X3", "X4", "X5", "X8")
qual <- c("X1", "X6", "X7")
####################################
# EvaluateCore
####################################
# }
# NOT RUN {
freqdist.evaluate.core(data = ec, names = "genotypes",
quantitative = quant, qualitative = qual,
selected = core)
checks <- c("D120559", "D120773")
freqdist.evaluate.core(data = ec, names = "genotypes",
quantitative = quant, qualitative = qual,
selected = core,
highlight = checks, highlight.col = "red")
quant.se <- data.frame(genotypes = checks, X2 = c(0.275, 0.25),
X3 = c(0.1, 0.081), X4 = c(0.002, 0.002),
X5 = c(0.093, 0.087), X8 = c(0.125, 0.074))
freqdist.evaluate.core(data = ec, names = "genotypes",
quantitative = quant,
selected = core,
highlight = checks, highlight.col = "red",
highlight.se = quant.se)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab