makeFlexTable(t, cap = "Top 10 postcode districts by number of cats per 'household'")
makeFlexTable(t, cap = "Top 10 postcode districts by number of cats per 'household'")
```
```
SA63 is in south west [Wales](https://www.google.co.uk/maps/place/Clarbeston+Road+SA63/@51.8852685,-4.9147384,12z/data=!3m1!4b1!4m5!3m4!1s0x4868d5805b12efe5:0xca42ee4bc84a2f77!8m2!3d51.8900045!4d-4.8502065) while LL23 is on the edge of the [Snowdonia National Park](https://www.google.co.uk/maps/place/Bala+LL23/@52.8953768,-3.7752989,11z/data=!3m1!4b1!4m5!3m4!1s0x4865404ae1208f67:0x65a437b997c0dfb2!8m2!3d52.8825403!4d-3.6497989)....
SA63 is in south west [Wales](https://www.google.co.uk/maps/place/Clarbeston+Road+SA63/@51.8852685,-4.9147384,12z/data=!3m1!4b1!4m5!3m4!1s0x4868d5805b12efe5:0xca42ee4bc84a2f77!8m2!3d51.8900045!4d-4.8502065) while LL23 is on the edge of the [Snowdonia National Park](https://www.google.co.uk/maps/place/Bala+LL23/@52.8953768,-3.7752989,11z/data=!3m1!4b1!4m5!3m4!1s0x4865404ae1208f67:0x65a437b997c0dfb2!8m2!3d52.8825403!4d-3.6497989)....
Do these places have some largish catteries but few houses? 8,233 is a lot of estimated cats.
Do these places have some largish catteries but few houses?
```{r histoCats, fig.cap = "Histogram of mean number of cats per dwelling"}
Is there a correlation between estimated total cats and the number of dwellings (electricity meters)?
Is there a correlation between estimated total cats and the number of dwellings (as measured by the number of electricity meters)?
```{r testTotalElecMeters}
```{r testTotalElecMeters}
ggplot2::ggplot(pc_district[!is.na(GOR10NM)], aes(x = nElecMeters , y = EstimatedCatPopulation,
ggplot2::ggplot(pc_district[!is.na(GOR10NM)], aes(x = nElecMeters , y = EstimatedCatPopulation,
colour = GOR10NM)) +
colour = GOR10NM)) +
scale_color_discrete(name = "UK `Region`") +
geom_point() +
geom_point() +
geom_smooth()
geom_smooth()
```
```
## More cats, more gas?
## More cats, more energy?
Clearly postcode districts with more dwellings will have higher energy use totals. So we need to compare the mean number of cats per dwelling with mean energy use per dwelling.
This will need to accommodate some outliers in terms of mean number of cats as we saw above and potentially also in terms of mean energy.