Created
September 25, 2015 15:16
-
-
Save andrie/4e5b6b5cc13dc6be8ae7 to your computer and use it in GitHub Desktop.
Changing plot size in Jupyter IRkernel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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