Usage
plotPosAnnotInComp(icaSet, params, keepVar = varLabels(icaSet), keepComp = indComp(icaSet), keepSamples = sampleNames(icaSet), pathPlot = NULL, breaks = 20, colAll = "grey74", colSel, resClus, funClus = c("Mclust", "kmeans"), nbClus = 2, by = c("annot", "component"), typeImage = c("pdf", "png", "none"), ...)
Arguments
icaSet
An object of class IcaSet
params
A MineICAParams
object
keepVar
The variable labels to be considered, i.e
a subset of the column labels of the pheno data of icaSet
available in (varLabels(icaSet)
)
keepComp
A subset of components available in
indComp(icaSet)
; by default, all components are
used
keepSamples
A subset of samples, must be available
in sampleNames(icaSet)
; by default, all samples
are used
pathPlot
A character specifying the path where the
plots will be saved
breaks
The number of breaks to be used in the
histograms
colSel
The colour of the histogram of the group of
interest, default is "red"
colAll
The colour of the global histogram, default
is "grey74"
resClus
A list containing the outputs of function
clusterSamplesByComp
, which consists of sample
clustering applied to matrix A of argument icaSet
.
If missing, the clustering is performed by the function.
funClus
The clustering method to be used, either
"Mclust"
or "kmeans"
. If resClus
is
not missing, equals resClus$funClus
.
nbClus
If resClus
is missing, it provides
the number of clusters to be computed by funClus
,
default is 2
by
Either "annot"
to plot the histograms of
each variable across all components, or
"component"
to plot the histograms for each
component across variables. When by="annot"
one
pdf file is created by variable name, while when
annot="component"
, one pdf file is created by
component.
typeImage
The type of image to be created, either
"pdf" (default) or "png". "png" is not recommended,
unless there are at the most 4 histograms to be plotted,
because it does not allow to deal with multiple pages of
plots.
...
Additional parameters for function
hist