Learn R Programming

Rmagic (version 2.0.3)

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

Description

Passes the smoothed data matrix to ggplot

Usage

# S3 method for magic
ggplot(data, ...)

Arguments

data

A fitted MAGIC object

...

Arguments for ggplot()

Examples

Run this code
# NOT RUN {
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()

}
# }

Run the code above in your browser using DataLab