r - An equivalent of xpd=TRUE for ggvis -
i playing ggvis , came following code:
library(ggvis) mtcars %>% ggvis(~disp, ~wt) %>% layer_points() %>% scale_numeric("x", domain = input_slider(50, 500, c(100, 400)), nice = false) %>% scale_numeric("y", domain = input_slider(0, 6, c(1, 5)), nice = false)
this enables me dynamically resize plot. problem when resizing of data points plotted outside range. there option xpd=true
base r graph clip plotting region, data points not in range of axes not plotted?
Comments
Post a Comment