According to the properties and scales reference and this SO post I should be able to use a props(prop()) call as shown below to create the graph. I'm getting an unintelligible error though.
test_df <- data.frame(cbind(x_vals = letters[1:5],
                            y_vals = 1:5)) 
Graphs correctly:
test_df %>% ggvis(x = ~x_vals, y = ~y_vals) %>% 
  layer_points() 
Has error:
x_val_variable <- "x_vals"
test_df %>% ggvis(y = ~y_vals) %>% 
      props(prop("x", as.name(x_val_variable)) %>% 
      layer_points()
Can anyone help me by telling me what I'm doing wrong?
 
    