plot_flat: plot_flat

View source: R/functions_util.R

plot_flatR Documentation

plot_flat

Description

plot to a temporary png and redraw as a flat image

Usage

plot_flat(
  p,
  dpi = 150,
  width = dev.size()[1],
  height = dev.size()[2],
  panel_only = FALSE
)

Arguments

p

a ggplot object to render

dpi

dots per inch for temp png, default is 150

width

width in inches for temp png, default it 8

height

height in inches for temp png, default is 8

Details

useful when svg would be too expensive due to high number of items

Value

a ggplot object containing flat image of original

Examples

chiptsne:::plot_flat(ggplot())

jrboyd/seqtsne documentation built on Nov. 5, 2022, 6:37 a.m.