I have a dataset of rankings of different items where I want the lowest value to show the tallest bar on the chart. Below is a small sample of the data and the code to build the chart, followed what the chart currently looks like.
data <- data.frame(ranks = c("rank1","rank2", "rank3") , value = c(13,2,18))
ggplot(data) +
geom_col(aes(x = ranks, y = value))
What I'd like the chart to look like is something like this (using the same data) with the y-axis reversed: