Introduction to R
  • Welcome!
  • Finding Resources
  • Acknowledgments
  • Working with R and RStudio
    • About this course
    • Setting up
    • Introduction to RStudio
  • Demystifying Data Types
    • Data Types
    • Data Structures
  • Into the Tidyverse!
    • The Tidyverse
    • Reading and Cleaning Data
    • Manipulating Data
  • Putting the R in aRt
    • ggplot2 and the grammar of graphics
    • Some Basic Plots
Powered by GitBook
On this page

Was this helpful?

  1. Putting the R in aRt

Some Basic Plots

Introducing the fundamental scatter, line and bar plots for visualisation

Getting started

While ggplot graphs can look incredibly diverse, thanks to the grammar of graphics structure, creating them all follow roughly the same steps. The first step to creating a plot is to use the ggplot() function to specify where the data is coming from (our dataset) and what variables we want to map onto it (which columns in that dataset).

Let's start by having a look at the titanic dataset

Previousggplot2 and the grammar of graphics

Last updated 4 years ago

Was this helpful?