This is the data;
N <- read.table(header=T, text="
Type Status Cases Percent
EEHV1A Died 42 70.4
EEHV1B Died 5 83.3
EEHV4 Died 11 31.4
E1&E4 Died 2 100.0
EEHV1A Survived 14 30.0
EEHV1B Survived 1 16.7
EEHV4 Survived 16 68.6
E1&E4 Survived 0 0.0
")
I run this script;ggplot(N, aes(fill=Status, Type, Cases))+
geom_bar(stat="identity", position="dodge") +
scale_x_discrete (limits= c("EEHV1A", "EEHV1B", "EEHV4", "E1&E4")) +
geom_text(aes(label = Cases, y = Cases + 0.05), position = position_dodge(0.9), vjust = -0.5, color="black") +
geom_text(aes(label = Percent, y = Percent + 0.05), position = position_dodge(0.9), vjust = -0.5, color="black")
I would like to have a label as Cases (Percent%) so how should I do?
Thank you 😊