Description Usage Arguments Details Value Examples
View source: R/prepare_tornado.R
Converts the data from a TornadoExperiment to a data.frame
that is accepted in ggplot2 plots.
1 2 3 4 5 6 7 8 9 | prep_tornado(
tornado,
assay_name = assayNames(tornado),
upper = "q0.99",
lower = 0,
scale_title = "Coverage",
scale = NULL,
...
)
|
tornado |
A TornadoExperiment object. |
assay_name |
A |
upper, lower |
Limits to the colour scale. Can be one of the following:
|
scale_title |
A |
scale |
A continuous fill scale from
the ggplot2 package to use to colour the tornado. When |
... |
Not currently used. |
The typical way of plotting a raster in ggplot2 is with the
geom_raster()
function. However, this requires
you to melt the raster first only to later reconstitute it, which can be
rather inefficient. To circumvent this inconvenience, we pre-colour the
data here with a ggplot2 scale.
A tornado_df
, data.frame
class object with a modified scale in
the "scale"
attribute.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.