plotBoxMetric {epistack} | 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( gr, metric = "expr", title = "Metric", trans_func = function(x) x, ylim = NULL, ylab = "metric", palette = colorRampPalette(c("magenta", "black", "green")) )
gr |
a GRanges input |
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 function that returns a palette of |
Display a plot.
data("stackepi") plotBoxMetric( stackepi, trans_func = function(x) x, metric = "exp", title = "Metric" )