View source: R/plotBoxMetric.R
plotBoxMetric | R Documentation |
Plot distribution of a metric values as boxplots
depending of bins.
If the bin
is absent from gr
, a single boxplot is drawn.
plotBoxMetric(
rse,
metric = "expr",
title = "Metric",
trans_func = function(x) x,
ylim = NULL,
ylab = "metric",
palette = colorRampPalette(c("#DF536B", "black", "#61D04F"))
)
rse |
a RangedSummarizedExperiment input. Aletrnatively: can be a GRanges object (for backward compatibility). |
metric |
name of the column in |
title |
title of the plot. |
trans_func |
A function to transform value of x before ploting.
Useful to apply log10 transformation
(i.e. with |
ylim |
limit of the y axis; format: |
ylab |
y-axis title |
palette |
A vector of colors, or a function that returns
a palette of |
Display a plot.
data("stackepi")
plotBoxMetric(
stackepi,
trans_func = function(x) x,
metric = "exp",
title = "Metric"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.