save_pdf-methods: Save plot on PDF file

save_pdfR Documentation

Save plot on PDF file

Description

save_pdf() takes as input a Heatmap from ComplexHeatmap and save it to PDF file

Usage

save_pdf(
  .heatmap,
  filename,
  width = NULL,
  height = NULL,
  units = c("in", "cm", "mm")
)

Arguments

.heatmap

A 'Heatmap'

filename

A character string. The name of the output file/path

width

A 'double'. Plot width

height

A 'double'. Plot height

units

A character string. units ("in", "cm", or "mm")

Details

\lifecycle

maturing

It simply save an 'Heatmap' to a PDF file use pdf() function in the back end

Value

NA

Examples



library(dplyr)
	tidyHeatmap::heatmap(
  dplyr::group_by(tidyHeatmap::pasilla,		location, type),
  .column = sample,
  .row = symbol,
  .value = `count normalised adjusted`,
 ) %>%
 save_pdf(tempfile())



tidyHeatmap documentation built on May 20, 2022, 9:05 a.m.