From: Frederik Vanrenterghem Date: Thu, 2 Nov 2017 13:38:12 +0000 (+0800) Subject: Only look at Melbourne. X-Git-Url: http://git.vanrenterghem.biz/R/project-au-taxstats.git/commitdiff_plain/0957ee3cd1a3bf1a9c046c73ef8b0ef8b81b91d2 Only look at Melbourne. --- diff --git a/AU-taxstats.R b/AU-taxstats.R index e96c7a6..728c943 100644 --- a/AU-taxstats.R +++ b/AU-taxstats.R @@ -51,7 +51,11 @@ taxstats.POA$`Total.Income.or.Loss.no.`[is.na(taxstats.POA$`Total.Income.or.Loss sa3$TotalIncome <- as.vector(POA_SAs %*% as.matrix(taxstats.POA$`Total.Income.or.Loss..`)) sa3$TotalIncomeEarners <- as.vector(POA_SAs %*% as.matrix(taxstats.POA$`Total.Income.or.Loss.no.`)) sa3$incomeperearningcapita <- sa3$TotalIncome / sa3$TotalIncomeEarners -ggplot(sa3) + + +# As SA3s are still to narrow around cities compared to in the country, +# let's simply look at Melbourne + +ggplot(dplyr::filter(sa3, data.table::`%like%`(GCC_NAME16, "Melbourne") )) + geom_sf(aes(fill = incomeperearningcapita, color = incomeperearningcapita)) + scale_fill_viridis("incomeperearningcapita") + scale_color_viridis("incomeperearningcapita")