alignment of the axis and data signatures in ggplot

Issue

This Content is from Stack Overflow. Question asked by LLA

I took an interesting sample of ggplot here and remade it for my data
Ma data is excel file
15 obs. of 9 var.

plot3 <- ggplot(md4, aes(x = col)) +
  geom_col( 
    aes(y = Orp, fill = 'Orp')) +geom_text(aes(y=Orp, label = paste(Orp, " [", CI1," ; ", CI2, "]", sep = ""), hjust = "right"))+
  geom_col( 
    aes(y = -Orn, fill = 'Orn')) + geom_text(aes(y=-Orn, label = paste(Orn, " [", CI3," ; ", CI4, "]", sep = ""), hjust = "left"))+
  coord_flip() +
  scale_y_continuous()
plot3

But this is where my understanding of R ended completely.
my plot

  1. Why is my variables in the schedule not in order ???

2 What should I write for the axis, so that they are aligned. The source was scale_y_continious (?), but I could not cope with an example.

3 And what to do so that data labels were on the right and left edges of the plot.



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?