使用公式时,deparse()中的VIOPROOT错误

使用公式时,deparse()中的VIOPROOT错误,r,plot,formula,R,Plot,Formula,在Rstudio中,当尝试将vioplot()函数与公式一起使用时,会出现错误:“deparse中的错误(…):未使用的参数(lex.order=FALSE)”。这里有一个可复制的示例: x <- rnorm(50, 0.5, 0.1) y <- sample(c('A','B'), 50, replace=T) vioplot(y~x) vioplot(x~y) 我可以通过在y中一个接一个地绘制条件来解决这个问题,但是第一个条件的格式很奇怪,只有一个勾号。我相信我可以解决这个问

在Rstudio中,当尝试将
vioplot()
函数与公式一起使用时,会出现错误:“deparse中的错误(…):未使用的参数(lex.order=FALSE)”。这里有一个可复制的示例:

x <- rnorm(50, 0.5, 0.1)
y <- sample(c('A','B'), 50, replace=T)

vioplot(y~x)
vioplot(x~y)
我可以通过在y中一个接一个地绘制条件来解决这个问题,但是第一个条件的格式很奇怪,只有一个勾号。我相信我可以解决这个问题,但我很好奇为什么这个公式不起作用

解决方案示例如下所示:

vioplot(x[y=='A'], at = 1, xlim = c(0,3), ylim = c(0.2,0.8))
vioplot(x[y=='B'], at = 2, xlim = c(0,3), ylim = c(0.2,0.8), add = T)

如有任何建议,将不胜感激

sessionInfo()
包含在下面:

R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS  10.15.6

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] vioplot_0.3.5     zoo_1.8-2         sm_2.2-5.4        PRROC_1.3.1       pheatmap_1.0.12   philentropy_0.4.0
[7] ggplot2_2.2.1     reshape_0.8.7    

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.3         lattice_0.20-35    digest_0.6.15      crayon_1.3.4       grid_3.3.2        
 [6] plyr_1.8.4         gtable_0.2.0       scales_0.5.0       pillar_1.4.3       rlang_0.4.4       
[11] lazyeval_0.2.1     rstudioapi_0.7     labeling_0.3       RColorBrewer_1.1-2 tools_3.3.2       
[16] munsell_0.5.0      pkgconfig_2.0.1    colorspace_1.3-2   tibble_2.1.3

vioplot(x~y)
适合我。我看到的第一件事是你的R版本是3.3.2。尝试更新!!!谢谢你,埃里克!更新到Rv4.0.3,似乎玩得更漂亮了。如果你提交答案,我会接受的。
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS  10.15.6

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] vioplot_0.3.5     zoo_1.8-2         sm_2.2-5.4        PRROC_1.3.1       pheatmap_1.0.12   philentropy_0.4.0
[7] ggplot2_2.2.1     reshape_0.8.7    

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.3         lattice_0.20-35    digest_0.6.15      crayon_1.3.4       grid_3.3.2        
 [6] plyr_1.8.4         gtable_0.2.0       scales_0.5.0       pillar_1.4.3       rlang_0.4.4       
[11] lazyeval_0.2.1     rstudioapi_0.7     labeling_0.3       RColorBrewer_1.1-2 tools_3.3.2       
[16] munsell_0.5.0      pkgconfig_2.0.1    colorspace_1.3-2   tibble_2.1.3