2019-12-17 Resizing plots in the R kernel for Jupyter notebooks

library(repr)

#Change plot size to 4 x 3

options(repr.plot.width=4,repr.plot.height=3)

curve(sin(x),from=0,to=2*pi,n=100)

#Change plot size to 8 x 3

options(repr.plot.width=8,repr.plot.height=3)

curve(sin(x),from=0,to=4*pi,n=200)

你可能感兴趣的:(2019-12-17 Resizing plots in the R kernel for Jupyter notebooks)