-- Leo's gemini proxy
-- Connecting to gemlog.blue:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
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."
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
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)
-- Response ended
-- Page fetched on Fri Mar 29 01:18:56 2024