Aan de slagGa gratis aan de slag

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 data frame 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.

Deze oefening maakt deel uit van de cursus

Foundations of Functional Programming with purrr

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Scatter plot of public repos and followers
ggplot(data = ___, 
       aes(x = ___, y = ___))+
    geom_point()
Code bewerken en uitvoeren