1 Introduction
2 Load packages and the database
remove(list = ls())
library(tidyverse)
library(googlesheets4)
library(ggplot2) ### Grammar of graphics
library(scales)
library(stringr)
library(gridExtra)
library(plotly)3 Suicides in Colombia
The next barplot shows the total suicides in Colombia:
The next barplot shows the total suicides in Colombia:
bar_plot(df_1, total,
titulo = "Number of suicides in Colombia by age \n 2019")The most affected group were young people between 20 and 24 years old. The next group was located in 25-29. Overall, the suicides were mostly between 20 and 34.
3.1 Suicides by gender in Colombia
grid.arrange(bar_plot(df_1, total_mujer,
titulo = "Number of suicides of women by age \n 2019"),
bar_plot(df_1, total_hombre,
titulo = "Number of suicides of men by age \n 2019"),
ncol = 2)Men had more suicides than women in 2019, even numbers above one hundred for men. However, to make a better comparison it will be necessary calculate rates per 100000 population.
3.2 Per 100.000 population rates for suicides in Colombia
This interactive barplot has rates per 100000 population. Again, you may notice that suicide rates are higher for men in almost all age groups.
3.3 Per 100.000 population rates for suicides in Colombia divided by education levels
The highest rates were concentrated in people without high school complete or with only primary education. Men have strongest representation in these rates.
3.4 Monthly Per 100.000 population rates for suicides in Colombia
March, August and December have the highest rates of suicides but February and November have the lowest. It’s really important to notice the difference between male and women rates.