Book Image

R Programming Fundamentals

By : Kaelen Medeiros
Book Image

R Programming Fundamentals

By: Kaelen Medeiros

Overview of this book

R Programming Fundamentals, focused on R and the R ecosystem, introduces you to the tools for working with data. You’ll start by understanding how to set up R and RStudio, followed by exploring R packages, functions, data structures, control flow, and loops. Once you have grasped the basics, you’ll move on to studying data visualization and graphics. You’ll learn how to build statistical and advanced plots using the powerful ggplot2 library. In addition to this, you’ll discover data management concepts such as factoring, pivoting, aggregating, merging, and dealing with missing values. By the end of this book, you’ll have completed an entire data science project of your own for your portfolio or blog.
Table of Contents (6 chapters)

Interactive Plots

Learning to build interactive plots is not within the scope of this book, but it is likely that you will see (and admire!) them on your data science with R journey, so a few examples are laid out in this topic.

Plotly

Plotly is an R package designed to allow you to create interactive plots online. It integrates with ggplot2, which we also learned in this chapter, and can be implemented in a number of programming languages as well, including Scala, Python, and Node.js.

We can view a few of these demos on the Plotly website, such as Dashboards under Plotly Fundamentals. We can see a full dashboard of Plotly charts load, including a plot of the diamonds dataset in the upper left, a bar chart next to it, a map...