Book Image

Learning RStudio for R Statistical Computing

Book Image

Learning RStudio for R Statistical Computing

Overview of this book

Data is coming at us faster, dirtier, and at an ever increasing rate. The necessity to handle many, complex statistical analysis projects is hitting statisticians and analysts across the globe. This book will show you how to deal with it like never before, thus providing an edge and improving productivity. "Learning RStudio for R Statistical Computing" will teach you how to quickly and efficiently create and manage statistical analysis projects, import data, develop R scripts, and generate reports and graphics. R developers will learn about package development, coding principles, and version control with RStudio. This book will help you to learn and understand RStudio features to effectively perform statistical analysis and reporting, code editing, and R development. The book starts with a quick introduction where you will learn to load data, perform simple analysis, plot a graph, and generate automatic reports. You will then be able to explore the available features for effective coding, graphical analysis, R project management, report generation, and even project management. "Learning RStudio for R Statistical Computing" is stuffed with feature-rich and easy-to-understand examples, through step-by-step instructions helping you to quickly master the most popular IDE for R development.
Table of Contents (13 chapters)

Plotting


Plotting is an essential need when analyzing data. One of the major reasons for developing R was to enable users to create graphics and charts easily and interactively.

Graphs are also useful as the result of the data analysis. Graphics can be an excellent way of communicating your result. R makes it possible to create high resolution graphics that can be used in scientific publications. RStudio includes several utilities that make both uses a bit easier. It has a specific plots panel that can be found at the bottom right-hand side of your RStudio window.

In a normal R session, all the graphics are rendered in a new graphics device (window). In RStudio, on the contrary, all graphics are by default rendered in the plots panel. This is an improvement upon normal R where a plot command opens up a new window and the command window loses its focus. In RStudio the plot generation does not interrupt the flow of analysis. If needed it is possible to enlarge the plot window and zoom in, but...