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

Enable plot replaying #1112

Merged
merged 15 commits into from Feb 19, 2016
Merged

Enable plot replaying #1112

merged 15 commits into from Feb 19, 2016

Conversation

wch
Copy link
Collaborator

@wch wch commented Feb 15, 2016

When a plot is made in renderPlot, it records the display list with recordPlot. Later, if only the height or width has changed (and no other inputs), the plot can be replayed with replayPlot, which can give a speed boost, especially with ggplot2.

@wch
Copy link
Collaborator Author

wch commented Feb 16, 2016

This should be good to go now.

}


render <- reactive({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I don't like verbs as names of reactive expressions. render() looks like it's a directive to render the plot, when the whole point of it is to not be that. A noun would be better.

@wch
Copy link
Collaborator Author

wch commented Feb 19, 2016

I've made the changes to address the feedback: render() is now plotObj(), and the replay option is now execOnResize. I also tested that if there's an error in a replay, it will re-render when resized again.

@wch wch merged commit 48c6784 into master Feb 19, 2016
@wch wch deleted the replay-plot branch February 19, 2016 19:57
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.

None yet

2 participants