Description Usage Arguments Details Value Author(s) Examples
Enhanced version of basic barplot and boxplot
1 2 3 4 5 6 | enhanced_basicplot(data, ..., ylim = NULL,
ylab = deparse(substitute(data)), title = NULL, title_gp = gpar(fontsize = 14),
type = c("boxplot", "barplot"), width = 0.8, gp = gpar(),
pch = 1, size = unit(2, "mm"), axis_gp = gpar(fontsize = 8),
padding = unit(c(2, 18, 2, 2), "mm"),
heatmap_legend_list = list())
|
data |
a matrix, a list or a simple numeric vector. If your data is a data frame please convert it to a matrix in the first place. |
... |
pass to |
ylim |
ranges on y axis |
ylab |
label on y axis |
title |
title of the plot |
title_gp |
graphic parameters for the title |
type |
type of the plot |
width |
relative width of the bar or box |
gp |
graphic parameters for hte bar or box |
pch |
shape of outlier points in the boxplot |
size |
size of hte outlier points in the boxplot |
axis_gp |
graphic parameters for the axis |
padding |
padding of the plot |
heatmap_legend_list |
a list of |
This function adds annotations to the barplot or boxplot.
This function is still quite experimental.
No value is returned
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 | mat = matrix(runif(100), 10)
enhanced_basicplot(mat)
ha = HeatmapAnnotation(char = sample(letters[1:2], 10, replace = TRUE),
num = runif(10))
enhanced_basicplot(mat, top_annotation = ha)
enhanced_basicplot(mat, type = "barplot", top_annotation = ha)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.