September 2018
Beginner to intermediate
140 pages
2h 52m
English
In this section, we'll plot subsets of data as separate subplots. Let's begin by implementing the following steps:
p <- ggplot (df, aes (x=gdp_per_capita, y=Electricity_consumption_per_capita)) + geom_point ()
p + facet_grid(Country ~ .)
Take a look at the following output scatter plot:

Read now
Unlock full access