save plot, support save into a blank canvas
pl_save(
plot,
filename,
width,
height,
units = "in",
canvas = NULL,
canvas_pos_x = 0.5,
canvas_pos_y = 0.1,
...
)no return value
ggplot object
filename
plot width
plot height
units, 'in' for inch as default. Can be 'in', 'cm'
NULL as default, pass character to use
built-in canvas ('A4', 'A4v'), or pass a numeric vector in 'c(width, heigh)'
form
from 0 to 1, the horizontal position of plot in canvas
from 0 to 1, the vertical position of plot in canvas
other arguments from ggsave