5 Hospital
Figure below compares morality rate in black people versus white people in different ages. Although the number of black people is less than white people in data, we can see that at each age category, the rate of morality in black people is more than white people.
##Race-Outcome
df_ethnicity =df %>%subset(ethnicity!='' )%>%group_by(ethnicity)%>%
summarise(expired=sum(hospitaldischargestatus=="Expired"),total=sum(hospitaldischargestatus %in%c("Expired","Alive")),percentage=expired/total*100)
ggplot(df_ethnicity, aes(x = ethnicity, y = percentage)) +
geom_bar(fill = "#0073C2FF", stat = "identity") +
geom_text(aes(label = ethnicity), vjust = -0.3) 

Figure below compares morality rate in black people versus white people in different ages. Although the number of black people is less than white people in data, we can see that at each age category, the rate of morality in black people is more than white people.
