sps: Alias for set_plot_size

View source: R/utils.R

spsR Documentation

Alias for set_plot_size

Description

Alias for set_plot_size

Set plot size for jupyter IRKernel

Usage

sps(width, height)

sps(width, height)

Arguments

width

width of the plot

height

height of the plot

Value

previous width and height (invisibly)

Examples


# run inside a jupyter notebook
sps(10, 5)
plot(1:10)

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

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


tanaylab/tgutil documentation built on April 12, 2025, 8:52 p.m.