I\'m trying to get ggplot2 plot with reversed y-axis and x-axis on top. I used scale_y_reverse() to get reversed y-axis but could not figured out h
ggplot2
scale_y_reverse()
You need ggvis to do that:
library(ggvis) dfn %>% ggvis(~dose, ~length, fill= ~supp, stroke=~supp) %>% layer_lines(fillOpacity=0) %>% scale_numeric('y', reverse=T) %>% add_axis('x',orient='top')