pl_save {plutor}R Documentation

save plot, support save into a blank canvas

Description

save plot, support save into a blank canvas

Usage

pl_save(
  plot,
  filename,
  width,
  height,
  units = "in",
  canvas = NULL,
  canvas_pos_x = 0.5,
  canvas_pos_y = 0.1,
  ...
)

Arguments

plot

ggplot object

filename

filename

width

plot width

height

plot height

units

units, 'in' for inch as default. Can be 'in', 'cm'

canvas

NULL as default, pass character to use built-in canvas ('A4', 'A4v'), or pass a numeric vector in 'c(width, heigh)' form

canvas_pos_x

from 0 to 1, the horizontal position of plot in canvas

canvas_pos_y

from 0 to 1, the vertical position of plot in canvas

...

other arguments from ggsave

Value

no return value


[Package plutor version 0.1.0 Index]