ggplot: Convert a MAGIC object to a data.frame for ggplot

Description Usage Arguments Examples

Description

Passes the smoothed data matrix to ggplot

Usage

1
2
## S3 method for class 'magic'
ggplot(data, ...)

Arguments

data

A fitted MAGIC object

...

Arguments for ggplot()

Examples

1
2
3
4
5
6
7
8
if (pymagic_is_available() && require(ggplot2)) {

data(magic_testdata)
data_magic <- magic(magic_testdata, genes=c("VIM", "CDH1", "ZEB1"))
ggplot(data_magic, aes(VIM, CDH1, colour=ZEB1)) +
  geom_point()

}

Rmagic documentation built on Nov. 21, 2019, 5:07 p.m.