makeLinePlot.RdMake a line plot showing values across different regions
makeLinePlot(
obj,
gr = NULL,
window.size = 5,
group = NULL,
group.colors = NULL,
group.label = "",
method = "mean",
plot.average.of.groups = FALSE,
avg.color = "red",
show.x.ticks = FALSE,
ylab = "",
remove.chr.prefix = TRUE,
verbose = F
)scCNVis object
A GenomicRanges::GRanges object specifying which regions to plot. If NULL, all regions will be plotted. Default = NULL
Window size for moving average calculation
Name of metadata column to group lines by. Default = NULL
Named character vector. Names should be the values in the column specified by 'group', values are the colors. Default = NULL
The label to be used for the groups. Default = ""
Method for aggregating values across a group. Should be "mean", "median", "sd" or "range". Default = "mean"
Logical. If TRUE, plot each cluster individually and an additional line representing the average of each cluster. Default = FALSE
Color. Used for the color of the cluster average, if plot.average.of.clusters == T. Default = 'red'
Logical. If TRUE, show tick marks on X axis. Only recommended when showing smaller regions. Default = FALSE
Character. Label of y axis. Default = ""
Remove 'chr' prefix of chromosome names. Default = TRUE
Verbose logging. Default = FALSE
Returns a list containing "Plot" (ggplot) and "PlotData" (data.frame)