plot_bar | R Documentation |
Create an interactive bar plot for specific summary information for each sample in the dataset.
plot_bar(
count.summary,
x = "Label",
y = "GiniIndex",
title = "sgRNA Read Distribution",
xlab = NULL,
ylab = "Gini Index",
fill = "#E69F00",
yaxis.addition = 0.05
)
count.summary |
data.frame containing the count summary information for each sample. |
x |
Character scalar for column of count.summary to plot along the x-axis. |
y |
Character scalar for column of count.summary to plot along the y-axis. |
title |
Character scalar for title of the plot. |
xlab |
Character scalar for label of the x-axis. |
ylab |
Character scalar for label of the y-axis. |
fill |
Character scalar for bar fill color in hex. |
yaxis.addition |
Numeric scalar for additional space to add to the y-axis. |
An interactive bar chart showing the specified summary information for each sample. The axis and plot title are editable.
Jared Andrews
BarView
, for a static bar plot from the same count summary data.
library(CRISPRball)
count.summ <- read.delim(system.file("extdata", "escneg.countsummary.txt",
package = "CRISPRball"
), check.names = FALSE)
# Gini Index plot
plot_bar(count.summ)
# Zero count sgRNAs plot
plot_bar(count.summ,
x = "Label", y = "Zerocounts", title = "Fully Depleted sgRNAs",
fill = "#394E80", ylab = "Zero Count sgRNAs", yaxis.addition = 10
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.