Equivalent to xpd = TRUE for ggvis

I am playing with ggvis and came up with the 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 allows me to dynamically resize the plot. The problem is that when resizing some of the data points are displayed out of range. Is there an option, like the xpd=TRUE

base R plot, to copy the plot area so that data points outside the axis range are not displayed?

+3
r ggvis


source to share


No one has answered this question yet

Check out similar questions:

8
Heatmap with numbers in ggvis
6
magazine scale and limits with ggvis
3
add_tooltip doesn't work in ggvis in R
3
Is position_fill equivalent to ggvis?
1
ggvis equivalent for cop_flip () in ggplot2?
1
What's the ggvis equivalent to stat_function in ggplot?
1
How to build an image outside the plot with the parameter (xpd = T)?
0
How to plot a graph in a grid based on columns
0
R: set axis ticks and range to include all points with good pauses
0
R - ggplot2 - plots of parcels in the form of lines



All Articles
Loading...
X
Show
Funny
Dev
Pics