View source: R/plot_tissue_enrichment.R
plotly_tissue_enrichment | R Documentation |
constructs a bar chart using ggplot to plot tissue enrichment.
plotly_tissue_enrichment( data, col.tissue, col.value, col.value.text = NULL, pvalue.line = NULL, xlab = "", ylab = "", title = "", xlim = NULL, color.significant = "red", color.other = "orange", col.value.order = NULL )
data |
a data.frame |
col.tissue |
string. Column containing tissue names. |
col.value |
string. Column containing pvalue, FDR, enrichment for plotting. |
col.value.text |
string. Column containing text that should be displayed when hovering over bar. |
pvalue.line |
p-value horizontal line. |
xlab |
string. x label. |
ylab |
string. y label. |
title |
string. title of plot. |
xlim |
vector of length 2. |
color.significant |
color of significant values. default is red. |
color.other |
color of non-signfificant values. Default is orange. |
col.value.order |
string that is either 'increasing' or 'decreasing'. Orders barplot accordingly. |
Other plotly:
add_plotly_layout_scatter()
,
add_plotly_layout_volcano()
,
add_plotly_line_unity()
,
add_plotly_threshold_lines()
,
add_plotly_trace()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.