Below are some of the visualizations created with this project.

Crime Rates By Province

The line plots shows the crime rates by provinces for each year.

Total Crime

Break and Enter

Robbery

Prostitution

Average Income by Province

The line plots shows the average income of provinces each year, this can help with identifying the trend of income.

Total Income

Employment Income

Investment Income

Market Income

Trend in Average Total Income

The plots shows the average total income of all provinces in each year. Thus we can identify overall trends of income by year.

Crime Rate vs Income

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.

Total Income and Total Crime

## `geom_smooth()` using formula = 'y ~ x'

Employment Income and Robbery

## `geom_smooth()` using formula = 'y ~ x'

Market Income and Property Crime

## `geom_smooth()` using formula = 'y ~ x'

Employment Income and Prostitution

## `geom_smooth()` using formula = 'y ~ x'

Income Levels

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.

Correlations

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.