draw.mutation.type.barplot | R Documentation |
Draw bar plot
draw.mutation.type.barplot(
data,
color = "jco",
alpha = 0.8,
title = "",
x = "Sample",
y = "Number of mutations (SNV+INDEL)",
position = "stack",
flip = FALSE
)
data |
A data.frame. Column names for ggplot2 :x=Sample, y=as.numeric(value), fill=variable |
color |
ggsci color palette |
alpha |
Color alpha |
title |
Titile of plot |
x |
X label |
y |
Y label |
position |
ggplot2 object
data <- data.frame( variable = c("exonic","exonic","exonic","intronic","intronic","intronic"),
Sample = c("S1","S2","S3","S1","S2","S3"),
value = c(1,2,3,4,5,6)
)
draw.mutation.type.barplot(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.