forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAugmentPlot.Rd
28 lines (27 loc) · 830 Bytes
/
AugmentPlot.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting_utilities.R
\name{AugmentPlot}
\alias{AugmentPlot}
\title{Augments ggplot2 scatterplot with a PNG image.}
\usage{
AugmentPlot(plot1, imgFile)
}
\arguments{
\item{plot1}{ggplot2 scatterplot. Typically will have only labeled axes and no points}
\item{imgFile}{location of a PNG file that contains the points to overlay onto the scatterplot.}
}
\value{
ggplot2 scatterplot that includes the original axes but also the PNG file
}
\description{
Used in to creating vector friendly plots. Exported as it may be useful to others more broadly
}
\examples{
\dontrun{
data("pbmc_small")
p <- PCAPlot(pbmc_small, do.return = TRUE)
ggsave(filename = 'pcaplot.png', plot = p, device = png)
pmod <- AugmentPlot(plot1 = p, imgFile = 'pcaplot.png')
pmod
}
}