Good evening,
I would like to be able to merge 3 graphs from 3 different data to obtain a single graph. I used geom_bar from ggplot2 to create the 3 graphs. But the position = “dodge” function does not allow me to individualize them at each time of X (X1, X2, X3 …).
Patchwork package can’t help me because it’s not about combining graphs on a single figure but merging them. Merge only works for merging data frames.
Attached is the R output, the result is attached as an image.
p <- ggplot() +
geom_bar(long00b, mapping = aes(x= reponse), position = “dodge”) +
geom_bar(long01b, mapping = aes(x = reponse, fill = inf_palu2), position = “dodge”) +
geom_bar(long02b, mapping = aes(x = reponse, fill = inf_sympto2), position = “dodge”)
p
Results : enter image description here
Help me please !!
Answer to my question !!
user25334460 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.