Skip to content
Introduction to Data Visualization with ggplot2
  • AI Chat
  • Code
  • Report
  • Introduction to Data Visualization with ggplot2

    Run the hidden code cell below to import the data used in this course.

    
    library(tidyverse)
    
    # Load the course datasets
    diamonds <- read.csv("datasets/diamonds.csv")
    iris <- read.csv("datasets/iris.csv")
    iris_tidy <- read.csv("datasets/iris_tidy.csv")
    iris_wide <- read.csv("datasets/iris_wide.csv")
    recession <- read.csv("datasets/recession.csv")
    fish <- read.csv("datasets/fish_species.csv")
    fish_tidy <- read.csv("datasets/fish_tidy.csv")
    fish_year <- read.csv("datasets/fish_year.csv")

    Take Notes

    Add notes about the concepts you've learned and code cells with code you want to keep.

    Add your notes here

    # Add your code snippets
    ggplot(mtcars, aes(x = mpg, y = fcyl)) +
      geom_point() 
    ggplot(mtcars, aes(x = mpg, y = fcyl)) +
      geom_point()
    ggplot(mtcars, aes(x = fcyl, y = mpg)) +
      geom_point()
    # Set the shape and size of the points
      geom_point(shape = 1, size = 4)