使用Fill函数ggplot时发生内核崩溃

时间:2019-07-19 19:59:00

标签: r ggplot2

我在独立环境上使用R 3.5.1,并且每当我在fill中使用ggplot参数时,内核就会崩溃。当我删除fill参数时,绘图工作正常。这适用于较旧的设置(无可用规格)。我还尝试仅使用ggsave保存,并且得到了相同的错误消息。

在本机R中运行时出现错误消息

*** caught illegal operation ***
address 0x7f3019a29703, cause 'illegal operand'

Traceback:
 1: id(data[disc], drop = TRUE)
 2: add_group(evaled)
 3: f(..., self = self)
 4: l$compute_aesthetics(d, plot)
 5: f(l = layers[[i]], d = data[[i]])
 6: by_layer(function(l, d) l$compute_aesthetics(d, plot))
 7: ggplot_build.ggplot(x)
 8: ggplot_build(x)
 9: print.ggplot(x)
10: function (x, ...) UseMethod("print")(x)



SessionInfo:
R version 3.5.1 (2018-07-02)
Platform: x86_64-conda_cos6-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /opt/anaconda3/lib/R/lib/libRblas.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] stringr_1.4.0  reshape2_1.4.3 ggplot2_3.2.0  dplyr_0.8.1    tidyr_0.8.3
[6] DBI_1.0.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.1       withr_2.1.2      crayon_1.3.4     assertthat_0.2.1
 [5] plyr_1.8.4       grid_3.5.1       R6_2.4.0         gtable_0.3.0
 [9] magrittr_1.5     scales_1.0.0     pillar_1.4.2     stringi_1.2.4
[13] rlang_0.4.0      lazyeval_0.2.2   tools_3.5.1      glue_1.3.1
[17] purrr_0.3.2      munsell_0.5.0    compiler_3.5.1   pkgconfig_2.0.2
[21] colorspace_1.4-1 tidyselect_0.2.5 tibble_2.1.3

谢谢!

0 个答案:

没有答案