Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Oct 1, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@GerardYu
Copy link

GerardYu commented Oct 1, 2021

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
Copy link
Contributor

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)

@drmowinckels drmowinckels added the bug Something isn't working label Oct 8, 2021
@drmowinckels drmowinckels transferred this issue from ggseg/ggseg Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants