View source: R/dotPercentage.R
dotPercentage | R Documentation |
This function calculate the percentage of genes in each category over given annotated gene sets and plot the percentages.
dotPercentage(cate.gene, annotated.gene, order.by = NULL, type = "l", lty = 1, pch = NULL, col = NULL, srt = 50, font = 1, adj = c(1,1), cex = 1, add.line = TRUE, legend = TRUE, legend.label = NULL, ...)
cate.gene |
a list of the five gene categories, alternatively output by |
annotated.gene |
a list of the annotated gene sets which the |
order.by |
one character out of of "Reversed","Inactive","Insufficient","Successful" and "Over" to specify a gene category the percentage is ordered by. |
type, lty, pch, col |
parameters for the plotting, specifying the type of plotting; the line type when
|
srt, font, cex, adj |
parameters for the text labeled on x-axis, specifying the string rotation in degrees;
the font of text; the text size, see graphic parameters in |
add.line |
logical to determine if to add lines on the dots, logical to |
legend |
logical to determine whether the legend is added on the figure, default to |
legend.label |
labels of the legend, applied only when |
... |
other parameters see |
a data frame with the percentage of cate.gene
in the annotated.gene
.
# load the C/T-specific genes in 16 cells/tissues data(human.gene) data(cate.gene) # perc = dotPercentage(cate.gene = cate.gene, annotated.gene = human.gene, # order.by = "Successful")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.