Description Usage Arguments Details Value
View source: R/peaks.near.TSS.R
Plot the density profile of peaks in certain sites
1 2 3 4 5 | peaks.near.TSS(peaks, sites, range = c(-2000, 2000), ignor.strand = F,
vertical.facet = F, horizonatl.facet = F, wrap.facet = T,
x.label = "Coordinates", y.label = "Density", legend.title = "TF",
wide.of.line = 0.7, axis.text.size = 8, axis.title.size = 12,
legend.title.size = 12, legend.text.size = 10, vertical.line = 0)
|
peaks |
is a Granges object that contain TF (names of transcription factors) and Condition (colum with names of cell,tissue and so on) columns in metadata |
sites |
is a number of sites (GRanges object) with the equal width, eg. promoter regions |
range |
is a range with min and max values on x axis (abs sum is equale to width of sites) |
ignor.strand |
is a boolean and used when strand of sites is '*' |
vertical.facet |
TRUE for making vertical facet (useful when you have a lot of different TFs or Conditions) |
wrap.facet |
TRUE for making wrap facet (useful if there are a lot of TFs) |
x.label |
is a name of x axis |
y.label |
is a name of y axis |
legend.title |
is a title of legend |
wide.of.line |
is width of curve on plot |
axis.text.size |
is size of text on axis |
axis.title.size |
is size of title text |
legend.title.size |
is size of title text on legend |
legend.text.size |
is size of text on legend |
vertical.line |
is a coordinate of vertical line on plot |
horizontal.facet |
TRUE for making vertical facet (useful when you have TF and Condition colums) |
Plot the density profile of peaks in certain sites
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.