wplot_save_pheatmap: wplot_save_pheatmap

Description Usage Arguments Examples

View source: R/MarkdownReportsDev.R

Description

Save pheatmap object. Modified from: https://stackoverflow.com/questions/43051525/how-to-draw-pheatmap-plot-to-screen-and-also-save-to-file

Usage

1
wplot_save_pheatmap(x, filename = substitute(x), width = 15, height = width)

Arguments

x

The pheatmap object to save.

filename

File name (saved as .pdf, inside working directory).

width

width of the plot in inches.

height

height of the plot in inches.

Examples

1
2
3
4
5
test = matrix(rnorm(200), 20, 10);
colnames(test) = paste("Test", 1:10, sep = "");
rownames(test) = paste("Gene", 1:20, sep = "");
ph.test <- pheatmap::pheatmap(test);
wplot_save_pheatmap(ph.test)

vertesy/MarkdownReportsDev documentation built on Nov. 15, 2021, 9:59 a.m.