In ggvis how to make legend vertical?
mtcars %>% ggvis(x = ~wt, y = ~mpg, fill = ~cyl) %>%
layer_points() %>%
add_legend("fill",properties = legend_props( legend = list(x = 500, y = 50)))
It puts the legends horizontally. I want it to be vertical.
See Question&Answers more detail:os