Description Usage Arguments Value Author(s) See Also
View source: R/functions_comp2annot.R
Given a sample annotation (e.g a tumor specific stage),
this function plots the positions of the corresponding
samples (e.g the subset of samples having this tumor
stage) within the histogram of the global sample
contributions. This function is called by
plotPosOneAnnotInComp_ggplot
and is only
dedicated to the plot of the histogram using the package
ggplot2
.
1 2 3 |
annot |
a data.frame of dimensions 'samples x annotations' with one column corresponding to the component to trait ("comp" column) and one column corresponding to the groups of interest ("interest" column) |
colAnnot |
the name of a column of the argument
|
selLev |
the name of the group of interest |
comp |
a vector of sample contributions |
colSel |
the colour of the histogram of the group of interest, default is "red" |
colAll |
the colour of the global histogram |
geneExpr |
a vector of values representative of the component, e.g the expression of the witness gene of the component |
geneRef |
the ID of the feature/gene |
title |
A title for the plot |
binwidth |
set the width of the bins, see
|
... |
other parameters given to
|
An object of class ggplot2 containing the histogram
Anne Biton
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.