How do I control the axis labels on a ggvis plot where the variables to be plotted are selected interactively?
问题 I am trying to create an interactive visualization with the ggvis package. Specifically, the user should be able to select which of the variables should be plotted on which axes. One way to do this was already presented in answer 2 of this question. However in this solution the axes are not labeled correctly: E.g. in this example library("ggvis") library("magrittr") sel <- input_select(names(mtcars),map=as.name) mtcars %>% ggvis(sel,~mpg) %>% layer_points() The y-axis has a label of "reactive