forked from ZimamDatathon2025/team_01
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.R
More file actions
10 lines (9 loc) · 641 Bytes
/
plot.R
File metadata and controls
10 lines (9 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
ICU_DiseaseClassification_Depression_Clean = data.table(read_xlsx(path = "ICU_DiseaseClassification_Depression_Clean.xlsx"))
p1 = ggplot(ICU_DiseaseClassification_Depression_Clean[p.value=="<0.0001"],aes(y=Percentage, x=Diease_classification ,fill=Depression,)) +
geom_bar(stat = "identity", position = "dodge") +
scale_fill_manual(values = c("Yes"="#78C1B6","No"="#216465")) +
theme_classic() + theme(axis.text.x = element_text(size=12, colour = "black",angle = 40,hjust = 1),
axis.text.y = element_text(size=12, colour = "black"))
pdf("common_IC_diagnosis.pdf",height = 5, width = 5)
print(p1)
dev.off()