A basic scatter plot
In this exercise, you will create a very basic scatter plot with ggplot2. This is mostly a repetition of stuff you've learnt in the prerequisites for this course, so it should be easy for you.
Bu egzersiz
Communicating with Data in the Tidyverse
kursunun bir parçasıdırEgzersiz talimatları
- Filter the data for the year
2006. Save this filtered data set in a new variable calledplot_data. - Use
plot_datato create a scatter plot withworking_hourson the x-axis andhourly_compensationon the y-axis.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Filter for 2006
plot_data <- ilo_data %>%
___
# Create the scatter plot
ggplot(plot_data) +
geom_point(aes(x = ___, y = ___))