Some explanation from HuffPost: “There are an estimated three million Americans with hepatitis C; most of them boomer-aged, and most of them don’t know they have it. For 75 to 85 percent of those people, infection will lead to chronic hepatitis-related diseases like liver cancer, cirrhosis or liver disease. In fact, hepatitis C is the most common reason people have liver transplants in the U.S. And the new, better medications that could cure them of this potentially fatal disease are so expensive that government safety nets and private insurance companies are struggling to provide coverage to as many people who need them.”
If we exclude Harvoni, we can better see the box plots of the other drugs.
final_dataset %>%
filter(!is.na(avg_price)) %>%
filter(trade_name %in% top_prescribed_drugs_sales) %>%
ungroup() %>%
mutate(trade_name = factor(trade_name)) %>%
mutate(trade_name_presc = fct_relevel(trade_name, c("Harvoni", "Januvia", "Crestor","Xarelto","Eliquis", "Truvada"))) %>%
group_by(trade_name) %>%
plot_ly(y = ~avg_price, type = "box", color = ~trade_name_presc, colors = "Set3") %>%
layout(title = "Distribution of Average Price for Most Prescribed Drugs", xaxis = trade_name_axis, yaxis = avg_price_axis)
final_dataset %>% #without harvoni
filter(!is.na(avg_price)) %>%
filter(trade_name %in% top_prescribed_drugs_sales) %>%
filter(trade_name != "Harvoni") %>%
ungroup() %>%
mutate(trade_name = factor(trade_name)) %>%
mutate(trade_name_presc = fct_relevel(trade_name, c("Januvia", "Crestor","Xarelto","Eliquis", "Truvada"))) %>%
group_by(trade_name) %>%
plot_ly(y = ~avg_price, type = "box", color = ~trade_name_presc, colors = "Set3") %>%
layout(title = "Distribution of Average Price for Most Prescribed Drugs", xaxis = trade_name_axis, yaxis = avg_price_axis)