Aan de slagGa gratis aan de slag

Flipping axes II

In this exercise, we'll continue to use the coord_flip() layer function to reverse the variables mapped onto the x and y aesthetics.

Within the mtcars dataset, car is the name of the car and wt is its weight.

Deze oefening maakt deel uit van de cursus

Intermediate Data Visualization with ggplot2

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Plot of wt vs. car
___ +
  # Add a point layer
  ___ +
  labs(x = "car", y = "weight")
Code bewerken en uitvoeren