ggseg / ggsegJHU

Other
4 stars 0 forks source link

Error in grid.Call.graphics(C_path, x$x, x$y, index, switch(x$rule, winding = 1L, : non-finite x or y in graphics path #3

Open GerardYu opened 3 years ago

GerardYu commented 3 years ago

hi I got the above error when i use atlas = tracula or jhu in geom_brain, but not the dk or aseg atlas.

I also got the same error even when i attempt to reproduce one of the vignettes:

plot(tracula) + # or plot(jhu) theme(legend.position = "bottom", legend.text = element_text(size = 9)) + guides(fill = guide_legend(ncol = 3))

here's my session info

R version 4.0.2 (2020-06-22) Platform: i386-w64-mingw32/i386 (32-bit) Running under: Windows 10 x64 (build 19043)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252

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

other attached packages: [1] dplyr_1.0.7 ggseg3d_1.6.3 ggplot2_3.3.5 ggsegTracula_1.0.1.001 ggseg_1.6.4

loaded via a namespace (and not attached): [1] Rcpp_1.0.7 pillar_1.6.1 compiler_4.0.2 class_7.3-17 tools_4.0.2 digest_0.6.27 viridisLite_0.4.0 [8] jsonlite_1.7.2 lifecycle_1.0.0 tibble_3.1.2 gtable_0.3.0 pkgconfig_2.0.3 rlang_0.4.11 rstudioapi_0.13
[15] DBI_1.1.1 e1071_1.7-7 httr_1.4.2 withr_2.4.2 htmlwidgets_1.5.3 generics_0.1.0 vctrs_0.3.8
[22] classInt_0.4-3 grid_4.0.2 tidyselect_1.1.1 data.table_1.14.0 glue_1.4.2 sf_1.0-1 R6_2.5.0
[29] plotly_4.9.4.1 fansi_0.5.0 farver_2.1.0 purrr_0.3.4 tidyr_1.1.3 magrittr_2.0.1 htmltools_0.5.1.1 [36] scales_1.1.1 ellipsis_0.3.2 units_0.7-2 assertthat_0.2.1 colorspace_2.0-2 utf8_1.2.1 KernSmooth_2.23-17 [43] proxy_0.4-26 lazyeval_0.2.2 munsell_0.5.0 crayon_1.4.1

drmowinckels commented 3 years ago

These errors are a little weird, but I'm getting them too. I'll see what I can figure out.

in the mean time, Using the old ggseg() function seems to be working fine, so if you need to get things working you can use that in stead for now.

ggseg(atlas = jhu)