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

An error occurred during use of package "ggSCvis" #1

Open
willsmith81 opened this issue Jan 6, 2024 · 9 comments
Open

An error occurred during use of package "ggSCvis" #1

willsmith81 opened this issue Jan 6, 2024 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@willsmith81
Copy link

Hello, it is a wonderful package for visualization and optimization for polar plot。
But I met an error when trying to use this package, mainly due to adding the new element (nice.facing = T) into the "coord_polar2( )", and the error is as followed,
"Error in if (0 <= angle & angle < 90) { : the condition has length > 1".

Please make some revise for the package, thanks.

@junjunlab
Copy link
Owner

Please install latest version ggplot2 from github.

@willsmith81
Copy link
Author

Sorry for that, I have tried to update the package "ggplot2" directly or indirectly.
But it seemingly did not function.

If the package "ggSCvis" has some limitation to the R edition? The current edition used is 4.2.0.
Looking forward to your reply, thanks!

@junjunlab
Copy link
Owner

junjunlab commented Jan 8, 2024

Please uninstall ggplot2 old version and re-install it.

install.packages("pak")
pak::pak("tidyverse/ggplot2")

@willsmith81
Copy link
Author

Of course, I did it following this process. It is puzzling.

@junjunlab
Copy link
Owner

My ggplot2 version is 3.4.4.9000, you can try install this version and try install ggh4x(version 0.2.7.9000).

@junjunlab junjunlab added the help wanted Extra attention is needed label Jan 9, 2024
@willsmith81
Copy link
Author

the version of package "ggplot2" is 3.4.4, and ggh4x version is the same as yours.

@willsmith81
Copy link
Author

Wether application of this package is limited to certain R versions or not?

@junjunlab
Copy link
Owner

sessionInfo()
R version 4.3.2 (2023-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8 LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8

time zone: Asia/Shanghai
tzcode source: internal

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

loaded via a namespace (and not attached):
[1] RColorBrewer_1.1-3 ggdendro_0.1.23 rstudioapi_0.15.0
[4] jsonlite_1.8.8 shape_1.4.6 magrittr_2.0.3
[7] spatstat.utils_3.0-4 GlobalOptions_0.1.2 fs_1.6.3
[10] vctrs_0.6.5 ROCR_1.0-11 memoise_2.0.1
[13] spatstat.explore_3.2-5 usethis_2.2.2 htmltools_0.5.7
[16] sctransform_0.4.1 parallelly_1.36.0 KernSmooth_2.23-22
[19] htmlwidgets_1.6.4 ica_1.0-3 plyr_1.8.9
[22] plotly_4.10.3 zoo_1.8-12 cachem_1.0.8
[25] igraph_1.6.0 mime_0.12 lifecycle_1.0.4
[28] pkgconfig_2.0.3 Matrix_1.6-4 R6_2.5.1
[31] fastmap_1.1.1 fitdistrplus_1.1-11 future_1.33.1
[34] shiny_1.8.0 digest_0.6.33 colorspace_2.1-0
[37] patchwork_1.1.3 Seurat_5.0.1 tensor_1.5
[40] RSpectra_0.16-1 irlba_2.3.5.1 pkgload_1.3.3
[43] progressr_0.14.0 fansi_1.0.6 spatstat.sparse_3.0-3
[46] httr_1.4.7 polyclip_1.10-6 abind_1.4-5
[49] compiler_4.3.2 remotes_2.4.2.1 fastDummies_1.7.3
[52] pkgbuild_1.4.3 MASS_7.3-60 sessioninfo_1.2.2
[55] tools_4.3.2 lmtest_0.9-40 httpuv_1.6.13
[58] ggSCvis_0.0.2 future.apply_1.11.1 goftest_1.2-3
[61] glue_1.6.2 nlme_3.1-163 promises_1.2.1
[64] grid_4.3.2 Rtsne_0.17 cluster_2.1.4
[67] reshape2_1.4.4 generics_0.1.3 gtable_0.3.4
[70] spatstat.data_3.0-3 tidyr_1.3.0 data.table_1.14.10
[73] sp_2.1-2 utf8_1.2.4 spatstat.geom_3.2-7
[76] RcppAnnoy_0.0.21 ggrepel_0.9.4 RANN_2.6.1
[79] pillar_1.9.0 stringr_1.5.1 spam_2.10-0
[82] RcppHNSW_0.5.0 later_1.3.2 circlize_0.4.15
[85] splines_4.3.2 dplyr_1.1.4 lattice_0.21-9
[88] survival_3.5-7 deldir_2.0-2 tidyselect_1.2.0
[91] miniUI_0.1.1.1 pbapply_1.7-2 gridExtra_2.3
[94] scattermore_1.2 devtools_2.4.5 matrixStats_1.2.0
[97] stringi_1.8.3 lazyeval_0.2.2 codetools_0.2-19
[100] ggcirclize_0.0.2 tibble_3.2.1 cli_3.6.2
[103] uwot_0.1.16 xtable_1.8-4 reticulate_1.34.0
[106] munsell_0.5.0 Rcpp_1.0.11 globals_0.16.2
[109] spatstat.random_3.2-2 png_0.1-8 parallel_4.3.2
[112] ellipsis_0.3.2 ggh4x_0.2.7 ggplot2_3.4.4.9000
[115] dotCall64_1.1-1 profvis_0.3.8 urlchecker_1.0.1
[118] listenv_0.9.0 viridisLite_0.4.2 scales_1.3.0
[121] ggridges_0.5.5 SeuratObject_5.0.1 leiden_0.4.3.1
[124] purrr_1.0.2 rlang_1.1.2 cowplot_1.1.2

@willsmith81
Copy link
Author

thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants