I searched very intensively, but could not find a solution to my problem.
I want to get the data in my graph ordered by values so that Tussilago farfara comes first and Euphorbia cyparissias comes last.
This is my dataset:
This is the code I used:
ggplot(data = artSlope, aes(x = slope, y = art)) +
geom_point() +
theme(panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
panel.background = element_blank(),
axis.line = element_line(colour = "black")) +
labs(y = "species", title = "phenological shifts") +
geom_vline(xintercept = 0) +
geom_errorbarh(aes(xmax = slope + se, xmin = slope - se))
How do I get the graph ordered by slope (x axis)?