[英]ggvis slider is squashed
I am using R version 3.2.0 (2015-04-16) from RStudio Version 0.98.1103. 我正在使用RStudio版本0.98.1103中的R版本3.2.0(2015-04-16)。 The platform is platform i386-w64-mingw32.
该平台是平台i386-w64-mingw32。 I am using Windows Vista Version 6. This code
我正在使用Windows Vista版本6。此代码
require(ggvis)
require(dplyr)
# ggvis use of a slider
mtcars %>%
ggvis(~wt, ~mpg, size := input_slider(10, 100),
opacity := input_slider(0,1) ) %>%
layer_points()
works, but the slider is squashed on the left of the plot and therefore difficult to use. 可以,但是滑块位于图的左侧,因此很难使用。 How can I overcome this please?
我该如何克服呢?
This seems to be a bug in the CRAN version of ggvis
. 这似乎是
ggvis
的CRAN版本中的ggvis
。
Try: 尝试:
# install.packages("devtools")
devtools::install_github("hadley/lazyeval", build_vignettes = FALSE)
devtools::install_github("hadley/dplyr", build_vignettes = FALSE)
devtools::install_github("rstudio/ggvis", build_vignettes = FALSE)
library(ggvis)
mtcars %>%
ggvis(~wt, ~mpg, size := input_slider(10, 100),
opacity := input_slider(0,1) ) %>%
layer_points()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.