-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plots don't print in-line in R Notebooks #133
Comments
Hey @Aariq , a few notes:
...so if you want to see your ggMarginal plot in a preview, you have to run the code chunks responsible for creating the plot first. |
Thanks! Sorry I didn't find #89 before posting this. Is there a reason why |
It actually is: Lines 191 to 194 in 4468f21
I didn't keep up with #89 so I'm not sure why ggMarginal needs to use the 2-chunk approach to printing in notebooks/Rmarkdown docs. |
I'm still not sure why notebooks/rmd behave this way, and whether or not this is a big. If you follow the links in #89 you'll see this is not a resolved question. This information is also available in the README (which is, admittedly, a bit long). If you solved the problem (even though we don't know the root of the issue), you can close the issue |
I don't really know what the code does here, but this change makes it work inline: print.ggExtraPlot <- function(x, newpage = is.null(vp), vp = NULL,...) {
if (newpage) grid::grid.newpage()
grid::grid.draw(x)
} I kind of just haphazardly copied things from |
Got it. |
ggMarginal()
plots don't print in-line or in the Viewer tab (i.e. they don't print at all) in R Notebooks.ggExtra notebook bug.Rmd.zip
The text was updated successfully, but these errors were encountered: