View source: R/plotAverageProfile.R
plotAverageProfile | R Documentation |
Plot the average stack profiles +/- error (sd or sem).
If a bin
column is present in rowRanges(rse)
,
one average profile is drawn for each bin.
plotAverageProfile(
rse,
assay = NULL,
x_labels = c("Before", "Anchor", "After"),
palette = colorRampPalette(c("#DF536B", "black", "#61D04F")),
alpha_for_se = 0.25,
error_type = c("sd", "sem", "ci95"),
reversed_z_order = FALSE,
ylim = NULL,
y_title = NULL,
pattern = NULL
)
rse |
a RangedSummarizedExperiment input. Aletrnatively: can be a
GRanges object
(for backward compatibility, |
assay |
specify the name of the assay to plot,
that should match one of |
x_labels |
x-axis labels. |
palette |
A vector of colors, or a function that returns
a palette of |
alpha_for_se |
the transparency (alpha) value for the error band. |
error_type, |
can be either |
reversed_z_order |
should the z-order of the curves be reversed (i.e. first or last bin on top?) |
ylim |
a vector of two numbers corresponding to the y-limits of the plot. |
y_title |
the y-axis title. |
pattern |
only if |
Display a plot.
data("stackepi")
plotAverageProfile(stackepi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.