Session Ready
Exercise

ggplot() refresher

You've already been introduced to the package ggplot2 in the prerequisite for this course, but let's do a quick refresher.

  • geom_point() makes scatterplots
  • geom_histogram() makes histograms

In this exercise, you are going to use a dataframe created from the gh_users dataset, called gh_users_df that has two columns; one for the number of public repositories a user has and another for how many followers that user has. Each row is a different user. Then you will make it into a scatter plot, a plot where the data are displayed with points.

Instructions 1/2
undefined XP
  • 1

    Create a scatterplot with public_repos on the x axis and followers on the y axis.

    • 2

      Create a histogram of followers by piping in gh_users_df.