Plot CpG correlation (pearson) as a function of distance between CpGs
gpatterns.plot_cg_cor(tracks, dist_breaks, intervals = gintervals.all(),
adjacent = FALSE, names = NULL, width = 500, height = 260,
fig_fn = NULL, xlab = "Distance between CpGs", ylab = "CpG correlation",
colors = NULL, parallel = getOption("gpatterns.parallel"), ...)
Arguments
- tracks
- tracks to plot
- dist_breaks
- distance breaks
- intervals
- genomic scope for which the function is applied
- adjacent
- plot correlation only between adjacent CpGs (faster)
- names
- alternative names for the track
- width
- plot width (if fig_fn is not NULL)
- height
- plot height (if fig_fn is not NULL)
- fig_fn
- output filename for the figure (if NULL, figure would be returned)
- xlab
- label for the x axis
- ylab
- label for the y axis
- colors
- custom colors
- parallel
- parallel
- ...
Value
list with trend data frame (under 'trend') and the plot (under 'p')