## load example data and set phi-vector
data(X.artificial, envir = environment())
phi <- seq(1, 10, length.out = ncol(X.artificial))
## perform EMMA with 5 end-members
EM <- EMMA(X = X.artificial, q = 5, lw = 0.05, c = 100, plot = TRUE)
## perform EMMA with 4 end-members and more graphical sttings
EM <- EMMA(X = X.artificial, q = 4, lw = 0.05, c = 100,
plot = TRUE,
EM.ID = c("EM 1", "EM 2", "EM 3", "EM 4"),
classunits = phi,
xlab = c(expression(paste("Class [", phi, "]")), "Sample ID"),
legend = "topleft",
cex = 0.7,
colour = colors()[c(441, 496, 499, 506)])Run the code above in your browser using DataLab