| plotAverageProfile {epistack} | R Documentation |
Plot the average stack profiles +/- error (sd or sem).
If a bin column is present in gr, one average profile
is drawn for each bin.
plotAverageProfile(
gr,
pattern = "^window_",
x_labels = c("Before", "Anchor", "After"),
palette = colorRampPalette(c("magenta", "black", "green")),
alpha_for_se = 0.25,
error_type = c("sd", "sem"),
reversed_z_order = FALSE,
ylim = NULL
)
gr |
a GRanges input |
pattern |
a single character that should match
metadata of |
x_labels |
x-axis labels. |
palette |
a color palette function,
by default: |
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 |
Display a plot.
data("stackepi")
plotAverageProfile(stackepi)