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
About the Authors
About the Reviewer

The graphic system in R

Everywhere in our daily lives and in almost all professional fields, plots surround us. Most people find it very difficult to detect and understand the cause-effect relationships in mere numerical tables. Visualizing data helps humans quickly capture relationships between one or more variables. Therefore, the graphical system is an integral part of R.

An introduction to the graphic devices

When you visualize data, the resulting plot appears on a graphical device. There are three different types of devices:

  • File devices, also called vector output, including PDF, PostScript, xfig, pictex, SVG, and win.metafile.

  • Bitmap devices, including the formats PNG, JPEG, TIFF, and BMP.

Screen devices, which in turn are the services of the different platforms. For Mac OS X, it is quartz(), for Windows, it's windows(), and for Linux/Unix, the screen device is launched by x11().

When you create a plot, this graphic will be sent to your screen device. There is only one screen device per...