Description Usage Arguments Value Author(s) Examples
The getr
and setr
functions are used to
get several reusable/changeable objects of
recoup
or replcace them (e.g. when the
user wishes to change some ggplot
or
ComplexHeatmap
parameters manually in a plot, or
change the heatmap profile ordering mode).
1 2 3 |
obj |
a list object created from
|
key |
one of |
value |
a valid |
For getr
, the object asked to be retrieved. For
setr
, the obj
with the respective slots
filled or replaced with value
.
Panagiotis Moulos
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # Load some data
data("recoup_test_data",package="recoup")
# Calculate coverages
test.tss <- recoup(
test.input,
design=NULL,
region="tss",
type="chipseq",
genome=test.genome,
flank=c(2000,2000),
selector=NULL,
plotParams=list(plot=FALSE,profile=TRUE,
heatmap=TRUE,device="x11"),
rc=0.1
)
# Plot coverage profiles
# Get the curve profile plot
pp <- getr(test.tss,"profile")
# Change some ggplot parameter
pp <- pp +
theme(axis.title.x=element_text(size=14))
# Store the new plot
test.tss <- setr(test.tss,"profile",pp)
## or even better
# test.tss <- setr(test.tss,list(profile=pp))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.