Skip to content

Instantly share code, notes, and snippets.

@andrie
Created September 25, 2015 15:16
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrie/4e5b6b5cc13dc6be8ae7 to your computer and use it in GitHub Desktop.
Save andrie/4e5b6b5cc13dc6be8ae7 to your computer and use it in GitHub Desktop.
Changing plot size in Jupyter IRkernel
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment