数据集:数据
Region | Forest | Lakes |
---|---|---|
North | 30 | 40 |
West | 40 | 100 |
South | 12 | 30 |
Central | 44 | 200 |
data %>%
ggplot(aes(x = Region, y = Forest)) +
geom_col() +
facet_wrap(~Lakes) + ggtitle("Lakes and Forest in different Regions")
不幸的是,这不是一件正确的事情.
我想要显示每个地区有多少湖泊和森林,然后是x轴上最近的地区.它怎麽工作?