powered by
Used in to creating vector friendly plots. Exported as it may be useful to others more broadly
AugmentPlot(plot1, imgFile)
ggplot2 scatterplot. Typically will have only labeled axes and no points
location of a PNG file that contains the points to overlay onto the scatterplot.
ggplot2 scatterplot that includes the original axes but also the PNG file
# NOT RUN { 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 # }
Run the code above in your browser using DataLab