I have this data frame:
District `2011` `2016` `2021`
<chr> <dbl> <dbl> <dbl>
1 YTM 44045 49046 44458
2 KC 37660 41802 40994
df <- tibble(District = c("YTM", "KC"),
`2011` = c(44045, 37660),
`2016` = c(49046, 41802),
`2021` = c(44458, 40994))
and I hope to plot a bar chart with x as district and need to group by years.
the result is similar to this