Skip to content

Commit

Permalink
fixed badge
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Sep 23, 2024
1 parent c339f1e commit 40c7612
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ library(edgebundle)
<!-- badges: start -->
[![R-CMD-check](https://github.com/schochastics/edgebundle/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/schochastics/edgebundle/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/edgebundle)](https://CRAN.R-project.org/package=edgebundle)
[![CRAN Downloads](http://cranlogs.r-pkg.org/badges/edgebundle)](https://CRAN.R-project.org/package=edgebundle)
[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/edgebundle)](https://CRAN.R-project.org/package=edgebundle)
<!-- badges: end -->

An R package that implements several edge bundling/flow and metro map algorithms. So far it includes
Expand Down
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,21 @@
[![CRAN
status](https://www.r-pkg.org/badges/version/edgebundle)](https://CRAN.R-project.org/package=edgebundle)
[![CRAN
Downloads](http://cranlogs.r-pkg.org/badges/edgebundle)](https://CRAN.R-project.org/package=edgebundle)
Downloads](https://cranlogs.r-pkg.org/badges/edgebundle)](https://CRAN.R-project.org/package=edgebundle)
<!-- badges: end -->

An R package that implements several edge bundling/flow and metro map
algorithms. So far it includes

- Force directed edge bundling
- Stub bundling
([paper](https://www.uni-konstanz.de/mmsp/pubsys/publishedFiles/NoBr13.pdf))
- Hammer bundling ([python
code](https://datashader.org/_modules/datashader/bundling.html))
- Edge-path bundling ([paper](https://arxiv.org/abs/2108.05467))
- TNSS flow map
([paper](https://doi.org/10.1080/15230406.2018.1437359))
- Multicriteria Metro map layout
([paper](https://doi.org/10.1109/TVCG.2010.24))
- Force directed edge bundling
- Stub bundling
([paper](https://www.uni-konstanz.de/mmsp/pubsys/publishedFiles/NoBr13.pdf))
- Hammer bundling ([python
code](https://datashader.org/_modules/datashader/bundling.html))
- Edge-path bundling ([paper](https://arxiv.org/abs/2108.05467))
- TNSS flow map ([paper](https://doi.org/10.1080/15230406.2018.1437359))
- Multicriteria Metro map layout
([paper](https://doi.org/10.1109/TVCG.2010.24))

**[ggraph
2.2.0](https://www.data-imaginist.com/posts/2024-02-15-ggraph-2-2-0/)
Expand Down Expand Up @@ -71,13 +70,13 @@ xy <- cbind(c(rep(0, 6), rep(1, 6)), c(1:6, 1:6))

fbundle <- edge_bundle_force(g, xy, compatibility_threshold = 0.1)
head(fbundle)
#> x y index group
#> 1 0.00000000 1.00000 0.0000000 1
#> 2 0.00611816 1.19977 0.0303030 1
#> 3 0.00987237 1.29767 0.0606061 1
#> 4 0.01929293 1.52427 0.0909091 1
#> 5 0.02790686 1.68643 0.1212121 1
#> 6 0.03440142 1.81285 0.1515152 1
#> x y index group
#> 1 0.00000000 1.000000 0.00000000 1
#> 2 0.00611816 1.199768 0.03030303 1
#> 3 0.00987237 1.297670 0.06060606 1
#> 4 0.01929293 1.524269 0.09090909 1
#> 5 0.02790686 1.686429 0.12121212 1
#> 6 0.03440142 1.812852 0.15151515 1
```

The result can be visualized as follows.
Expand All @@ -94,13 +93,13 @@ ggplot(fbundle) +
#> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
#> ℹ Please use `linewidth` instead.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
```

<img src="man/figures/README-plot-1.png" width="100%" style="display: block; margin: auto;" />

``` r

# simple edge-path bundling example
g <- graph_from_edgelist(matrix(c(1, 2, 1, 6, 1, 4, 2, 3, 3, 4, 4, 5, 5, 6),
ncol = 2, byrow = TRUE
Expand Down
Binary file modified man/figures/README-bezier-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-plot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 40c7612

Please sign in to comment.