Set plot size for jupyter IRKernel

sps(width, height)

Arguments

width

width of the plot

height

height of the plot

Value

previous width and height (invisibly)

Examples

sps(10, 5)
plot(1:10)

# save previous size
prev <- sps(5, 5)
plot(1:10)

sps(prev[1], prev[2])