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

the edge widths don't change: geom_edge_link(aes(width = weight)) #285

Closed
mnakaya5 opened this issue Mar 17, 2021 · 0 comments
Closed

the edge widths don't change: geom_edge_link(aes(width = weight)) #285

mnakaya5 opened this issue Mar 17, 2021 · 0 comments

Comments

@mnakaya5
Copy link

mnakaya5 commented Mar 17, 2021

#144 This issue seems to be closed, however, I am facing the same issue now and referring to the previous thread to solve for ddhodge. Any thoughts as to what might be going on?

ddHodge part

Specify the indices of starting root cluster(e.g."4").

g <- diffusionGraph(data_csv,group=="5",k=7,npc=100,ndc=40,s=2)

Visualization

dggraph <- function(g,...)
ggraph(g) + theme_void() +
geom_edge_link(
aes(width=weight),
colour="black",
arrow=arrow(length=unit(2.4,"mm")),
end_cap = circle(1.2,'mm'),
) + scale_edge_width(range=c(0.2,0.5)) +
geom_node_point(...)

sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
system code page: 932

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

other attached packages:
[1] data.table_1.14.0 ddhodge_0.11 ggraph_2.0.5 ggsci_2.9 readr_1.4.0
[6] cowplot_1.1.1 patchwork_1.1.1 Seurat_3.2.2 dplyr_1.0.5 ggplot2_3.3.2

loaded via a namespace (and not attached):
[1] nlme_3.1-152 matrixStats_0.58.0 RcppAnnoy_0.0.16 RColorBrewer_1.1-2
[5] httr_1.4.2 sctransform_0.3.2 tools_4.0.4 utf8_1.1.4
[9] R6_2.5.0 irlba_2.3.3 rpart_4.1-15 KernSmooth_2.23-18
[13] uwot_0.1.8 mgcv_1.8-34 DBI_1.1.1 lazyeval_0.2.2
[17] colorspace_2.0-0 withr_2.4.1 tidyselect_1.1.0 gridExtra_2.3
[21] compiler_4.0.4 plotly_4.9.3 labeling_0.4.2 scales_1.1.1
[25] spatstat.data_2.0-0 lmtest_0.9-38 ggridges_0.5.3 pbapply_1.4-3
[29] goftest_1.2-2 spatstat_1.64-1 stringr_1.4.0 digest_0.6.27
[33] spatstat.utils_2.0-0 pkgconfig_2.0.3 htmltools_0.5.1.1 parallelly_1.23.0
[37] fastmap_1.1.0 htmlwidgets_1.5.3 rlang_0.4.10 rstudioapi_0.13
[41] shiny_1.6.0 farver_2.1.0 generics_0.1.0 zoo_1.8-8
[45] jsonlite_1.7.2 ica_1.0-2 magrittr_2.0.1 Matrix_1.3-2
[49] Rcpp_1.0.6 munsell_0.5.0 fansi_0.4.2 abind_1.4-5
[53] reticulate_1.18 viridis_0.5.1 lifecycle_1.0.0 stringi_1.5.3
[57] MASS_7.3-53 Rtsne_0.15 plyr_1.8.6 grid_4.0.4
[61] parallel_4.0.4 listenv_0.8.0 promises_1.2.0.1 ggrepel_0.9.1
[65] crayon_1.4.1 deldir_0.2-10 miniUI_0.1.1.1 lattice_0.20-41
[69] graphlayouts_0.7.1 splines_4.0.4 tensor_1.5 hms_1.0.0
[73] pillar_1.5.1 igraph_1.2.6 future.apply_1.7.0 reshape2_1.4.4
[77] codetools_0.2-18 leiden_0.3.7 glue_1.4.2 vctrs_0.3.6
[81] png_0.1-7 tweenr_1.0.1 httpuv_1.5.5 gtable_0.3.0
[85] RANN_2.6.1 purrr_0.3.4 polyclip_1.10-0 tidyr_1.1.3
[89] future_1.21.0 assertthat_0.2.1 xfun_0.22 ggforce_0.3.3
[93] rsvd_1.0.3 mime_0.10 xtable_1.8-4 tidygraph_1.2.0
[97] later_1.1.0.1 survival_3.2-7 viridisLite_0.3.0 tibble_3.1.0
[101] tinytex_0.30 cluster_2.1.1 globals_0.14.0 fitdistrplus_1.1-3
[105] ellipsis_0.3.1 ROCR_1.0-11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants