In the previous recipe, we studied how multivariate data can be displayed on a scatter plot. We used color as a visual cue to display information related to different presidents in the USA and how the economy performed. In this recipe, we will build on the same idea and introduce interactive scatter plots. The limitation of a static plot is that they are hard to interpret if the points overlap, and if the gridlines are not present the data may be hard to decipher as well. Interactive plots help us to overcome this limitation. In this recipe, we will plot a simple interactive scatter plot with a trend line as shown in the following screenshot:
R Data Visualization Cookbook
R Data Visualization Cookbook
Overview of this book
Table of Contents (17 chapters)
R Data Visualization Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
A Simple Guide to R
Basic and Interactive Plots
Heat Maps and Dendrograms
Maps
The Pie Chart and Its Alternatives
Adding the Third Dimension
Data in Higher Dimensions
Visualizing Continuous Data
Visualizing Text and XKCD-style Plots
Creating Applications in R
Index
Customer Reviews