## Mental Health As Risk For Drug Dependency * Source: http://ourworldindata.org * Quote: "Increased risk of developing an illicit drug dependency or abuse disorder in individuals with a given mental health disorder, relative to those without. A value of 3.9 for PTSD, for example, would indicate that individuals with PTSD are 3.9 times as likely to develop drug dependency relative to those without." ### Software required to recreate plot: * Install: R language, RTools40 and RStudio (see link below) * Packages: GGPLot2, dplyr, janitor. * Download code and data from Github.com (see link below). * Move R code and data to working directory => https://rumble.com/embed/vba44d/?pub=1gv3z Walkthough (R Code) => https://git.skyjake.fi/skyjake/lagrange/releases Gemini Browser => gemini://gemlog.blue/users/cariboudatascience/ Caribou Data Science(Capsule) ### Run R Code: ``` rm(list=ls()) mental_head_risk <- read.csv("./DATA/mental-health-as-risk-for-drug-dependency.csv") colnames(mental_head_risk) <- c("Disorder","Risk") mental_head_risk %>% ggplot() + geom_col(aes(x=reorder(Disorder,Risk),y=Risk)) + coord_flip() + labs(title="Mental Health as Risk For Drug Dependency", x="Mental Disorders") + geom_text(aes(x=Disorder,y=Risk,label=Risk),nudge_y = 0.5) ``` ### Plot Mental Health Risk => https://github.com/davidjayjackson/Gemini-content/blob/main/mental-health-as-risk-for-drug-dependency.png ## Resources: => https://github.com/davidjayjackson/Gemini-content R Code, data => https://cloud.r-project.org/ R Language and Rtools40 (click and "base" and "Rtools") => https://rstudio.com/products/rstudio/download/ Download and install RStudio