## Not run:
# ## load an example of IcaSet
# data(icaSetCarbayo)
#
# ## selection of sample groups according to annotations STAGE
# samplesByGroup <- lapply(split(pData(icaSetCarbayo),pData(icaSetCarbayo)[c("STAGE")]), rownames)
# # select groups including at least 2 samples
# samplesByGroup <- samplesByGroup[which(unlist(lapply(samplesByGroup,length))>1)]
#
# ## clustering of samples according to A using Mclust imposing two Gaussian
# resClus <- clusterSamplesByComp(icaSet=icaSetCarbayo,funClus="Mclust", nbClus=2, clusterOn="A")
#
# ## Plot positions of the groups in 5th component
# pdf(file="stageOnIC5.pdf", height = 8.267717, width = 29.7/2.54, paper = 'a4r', title="stageOnIC5")
# plotPosSamplesInComp(samplesByGroup=samplesByGroup, icaSet=icaSetCarbayo, funClus="Mclust",
# resClus = resClus, keepComp=5)
# dev.off()
# ## End(Not run)
Run the code above in your browser using DataLab