Book Image

Mastering RStudio: Develop, Communicate, and Collaborate with R

4 (1)
Book Image

Mastering RStudio: Develop, Communicate, and Collaborate with R

4 (1)

Overview of this book

RStudio helps you to manage small to large projects by giving you a multi-functional integrated development environment, combined with the power and flexibility of the R programming language, which is becoming the bridge language of data science for developers and analyst worldwide. Mastering the use of RStudio will help you to solve real-world data problems. This book begins by guiding you through the installation of RStudio and explaining the user interface step by step. From there, the next logical step is to use this knowledge to improve your data analysis workflow. We will do this by building up our toolbox to create interactive reports and graphs or even web applications with Shiny. To collaborate with others, we will explore how to use Git and GitHub and how to build your own packages to ensure top quality results. Finally, we put it all together in an interactive dashboard written with R.
Table of Contents (17 chapters)
Mastering RStudio – Develop, Communicate, and Collaborate with R
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Embedding interactive charts into R Markdown


The next way is to embed interactive chart types into R Markdown documents by using various R packages that enable us to create interactive charts. Some of these package, we have already been introduced to in Chapter 3, R Lesson I – Graphics System. They are as follows:

  • ggvis

  • rCharts

  • googleVis

  • dygraphs

Therefore, we will not introduce them again, but will introduce some more packages that enable us to build interactive charts. They are:

  • threejs

  • networkD3

  • metricsgraphics

  • plotly

Please keep in mind that the interactivity logically only works with the HTML output of R Markdown.

Using ggvis for interactive R Markdown documents

We already know the ggvis package from Chapter 3, R Lesson I: Graphics System. Broadly speaking, ggvis is the successor to the well-known graphic package, ggplot2. The interactivity options of ggvis, which are based on the reactive programming model of the Shiny framework, are also useful for creating interactive R Markdown...