Skip to contents

Write a plot to a temporary PDF and open it (Windows default viewer). Supports ggplot, ComplexHeatmap (Heatmap / HeatmapList), and other objects handled by export::graph2pdf().

Usage

open_plot_pdf(p, width = 5, height = 4)

Arguments

p

A ggplot, ComplexHeatmap, or other plot object.

width

PDF width in inches.

height

PDF height in inches.

Value

NULL, invisibly. Side effect: opens the temp PDF via open_file().