Does anyone know if it is possible to change the variables for the x and y axis interactively with ggvis? I can change the size of the data points, their position and opacit
Yes. You could do as follows:
library(ggvis) mtcars %>% ggvis(x = ~mpg, y = input_select(label = "Choose what to plot:", choices = names(mtcars), selected = "cyl", map = as.name)) %>% layer_points()
If you want to select both variable just do the same for x.