Exploring a dataset interactively through a graphical user interface can be a rewarding and enlightening way to analyze and interrogate data. Dynamically adding and removing data from a plot, zooming in and out of specific parts, or allowing the plot to change with time-dependent on underlying data can allow us to see trends and features we could not see with static plots. In this recipe, we'll look at using the plotly library to create interactive graphics in R, building up from a basic plot to a more involved one.
Creating interactive web graphics with plotly
Getting ready
In this recipe, we'll use the built-in Orange data, which describes changes in the circumference of orange trees' trunks over time. This...