This data is from Red Project Grand Rapids, which is an NGO that strives to provide better health choices related to sexual activity and drug use, without judgement and without fear. They provide health resource to prevent the spread of disease, and save lives Last semester I got a chance to work with them to come up with some deliverables that showed patterns in the data that they recorded. The deliverables that we provided will be used as evidence and support to bring resources to communities that lack it.
Last project with Red Project GR focused on overdoses by zipcodes and cities, so I was curious how the number of overdoses looked through the lens of syringe access services.
plot_ly(hotspot, x = ~SYRINGE.ACCESS.SERVICES, y = ~total) %>%
add_boxplot()
## Warning: Ignoring 5 observations
Another facet: gender
gender <- rp %>%
group_by(GENDER, SYRINGE.ACCESS.SERVICES)%>%
summarize(total = n())%>%
arrange(desc(total))
## `summarise()` has grouped output by 'GENDER'. You can override using the `.groups` argument.
plot_ly(gender, x = ~SYRINGE.ACCESS.SERVICES, y = ~total, color = ~GENDER) %>%
add_bars()
## Warning: Ignoring 3 observations
plot_ly(gender, x = ~SYRINGE.ACCESS.SERVICES, y = ~total, color = ~GENDER) %>%
add_bars() %>%
layout(barmode = "stack")
## Warning: Ignoring 3 observations
Another facet: race
race <- rp %>%
group_by(RACE, SYRINGE.ACCESS.SERVICES)%>%
summarize(total = n())%>%
arrange(desc(total))
## `summarise()` has grouped output by 'RACE'. You can override using the `.groups` argument.
race$RACE[race$RACE == 'WHTE'] <- 'WHITE'
plot_ly(race, x = ~SYRINGE.ACCESS.SERVICES, y = ~total, color = ~RACE) %>%
add_bars()
## Warning: Ignoring 2 observations
plot_ly(race, x = ~SYRINGE.ACCESS.SERVICES, y = ~total, color = ~RACE) %>%
add_bars() %>%
layout(barmode = "stack")
## Warning: Ignoring 2 observations
Abbreviations of the types of Syringe Access Services
IN: incomplete, was unable to contact them and connect them with services
R = refuse, did not want services
SNA = only used if person did not survive
EST = already a participant in their program or another receiving services
Reflection:
I think Claus Wilke’s book was very resources it terms of making a graph in plotly, his explanations on bar graphs and histograms helped me to understand that when learning something starting small is okay. So I tried to start small using bar graphs and boxplots.
I think this dataset played a major role for me to unlearn the stigma around drug use and victims who are suffering from it. This project is how I learned about the existence about syringe access services. Which are stigmatized as well. I think pairing this data with more evidence can be helpful in getting more resources in more communities
One of the major frustations I had working with plotly is that I couldn’t figure out how to rename to labels and tiny details as such. Because I have so much experience with ggplot2
and ggformula
I kind of expected it to work like those packages, but it is doesn’t, so it is encouraging to learn the “new” functionality of plotly.