Reactive Programming for Interactive Graphics
Yihui Xie, Heike Hofmann, Xiaoyue Cheng

TL;DR
This paper explores the use of reactive programming within the MVC architecture to improve the development and management of interactive statistical graphics, enabling faster updates and easier extension.
Contribution
It introduces a reactive programming paradigm for interactive graphics in R, demonstrated through the cranvas package, enhancing modularity and responsiveness.
Findings
Reactive data objects facilitate fast updates in interactive graphics.
The cranvas package implements the proposed paradigm effectively.
Separation of concerns simplifies extension and maintenance of interactive applications.
Abstract
One of the big challenges of developing interactive statistical applications is the management of the data pipeline, which controls transformations from data to plot. The user's interactions needs to be propagated through these modules and reflected in the output representation at a fast pace. Each individual module may be easy to develop and manage, but the dependency structure can be quite challenging. The MVC (Model/View/Controller) pattern is an attempt to solve the problem by separating the user's interaction from the representation of the data. In this paper we discuss the paradigm of reactive programming in the framework of the MVC architecture and show its applicability to interactive graphics. Under this paradigm, developers benefit from the separation of user interaction from the graphical representation, which makes it easier for users and developers to extend interactive…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
