Below are some of the visualizations created with this project.
The line plots shows the crime rates by provinces for each year.
The line plots shows the average income of provinces each year, this can help with identifying the trend of income.
The plots shows the average total income of all provinces in each year. Thus we can identify overall trends of income by year.
The scatter plot shows the relationshio between crime rate and income. While the first tab shows total crime(all types) and total income, the rest demonstrates the relationship between a specific crime type and income type.
## `geom_smooth()` using formula = 'y ~ x'
## `geom_smooth()` using formula = 'y ~ x'
## `geom_smooth()` using formula = 'y ~ x'
## `geom_smooth()` using formula = 'y ~ x'
I created 4 levels for average total income using the quarantines, from negative infinity to the first quantile is “Low”, from first quantile to mean is “Med_Low”, from mean to 3rd quantile is “Med_High”, from 3rd quantile above is “High”. The box plot shows the average total crime rate by income level.
The heat map displays the absolute value of the correlation between each type of crime and income in Ontario. Move your cursor on the plot to see which correlation does a box represent.