plotMetric: plotMetric()

View source: R/plotMetric.R

plotMetricR Documentation

plotMetric()

Description

Plot a vertical line chart of the metric column, in the same order as the input.

Usage

plotMetric(
  x,
  trans_func = function(x) x,
  title = "Metric",
  ylim = NULL,
  xlab = NULL,
  ylab = NULL
)

Arguments

x

a numeric vector.

trans_func

a function to transform x values before ploting. Useful to apply log10 transformation (i.e. with trans_func = function(x) log10(x+1)).

title

Title of the plot.

ylim

limit of the y axis; format: ylim = c(min, max)

xlab

x-axis title

ylab

y-axis title

Value

Display a plot.

See Also

plotEpistack, plotBoxMetric

Examples

data("stackepi")
plotMetric(SummarizedExperiment::rowRanges(stackepi)$exp)


GenEpi-GenPhySE/epistack documentation built on July 27, 2023, 1:09 a.m.