Skip to content
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

delete plot(g) #1

Closed
wants to merge 1 commit into from
Closed

delete plot(g) #1

wants to merge 1 commit into from

Conversation

slowkow
Copy link

@slowkow slowkow commented Nov 28, 2017

plot(g) creates a redundant plot in addition to the one created by return(g)

See this notebook for an example of the problem:

https://gist.github.com/slowkow/4648559c42c0ee7a6c27e497e185d8c6

I re-ran the notebook after applying the changes in this pull request, and the duplicated plot has disappeared.

plot(g) creates a redundant plot when g is returned afterwards
@tpq
Copy link
Owner

tpq commented Nov 29, 2017

AH! Returning a ggplot2 object calls the plot routine automatically. Hm, I noticed this strange behavior in my own notebooks, but hadn't tracked down the source. Thanks heaps for the tip. These changes will get put into the next release cycle :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants