Book Image

R Data Visualization Cookbook

Book Image

R Data Visualization Cookbook

Overview of this book

If you are a data journalist, academician, student or freelance designer who wants to learn about data visualization, this book is for you. Basic knowledge of R programming is expected.
Table of Contents (12 chapters)
11
Index

Chapter 1. A Simple Guide to R

In this chapter, we will cover the following recipes:

  • Installing packages and getting help in R
  • Data types in R
  • Special values in R
  • Matrices in R
  • Editing a matrix in R
  • Data frames in R
  • Editing a data frame in R
  • Importing data in R
  • Exporting data in R
  • Writing a function in R
  • Writing if else statements in R
  • Basic loops in R
  • Nested loops in R
  • The apply, lapply, sapply, and tapply functions
  • Using par to beautify a plot in R
  • Saving plots