diff --git a/DESCRIPTION b/DESCRIPTION index 2c5d842..4e22ef1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: edgebundle Title: Algorithms for Bundling Edges in Networks and Visualizing Flow and Metro Maps -Version: 0.2.1.9999 +Version: 0.3.0 Authors@R: person(given = "David", family = "Schoch", diff --git a/NEWS.md b/NEWS.md index d7a5cc2..e13c4e8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,10 +1,10 @@ -# edgebundle 0.2.1.9999 +# edgebundle 0.3.0 -added `edge_bundle_path()` +* added `edge_bundle_path()` # edgebundle 0.2.1 -Fixed an error that occurred with valgrind +* Fixed an error that occurred with valgrind # edgebundle 0.2.0 diff --git a/R/bundle_path.R b/R/bundle_path.R index 46356b1..617cbfa 100644 --- a/R/bundle_path.R +++ b/R/bundle_path.R @@ -59,6 +59,7 @@ edge_bundle_path <- function(g,xy,max_distortion = 2,weight_fac = 2,segments = 2 cpoints[[e]] <- xy[sp_verts,] } cpoints_bezier <- lapply(cpoints,approximateBezier,n=segments) + idx <- seq(0, 1, length.out = segments) data_bundle <- as.data.frame(cbind( do.call("rbind",cpoints_bezier), diff --git a/cran-comments.md b/cran-comments.md index 1222f04..9b3bba3 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,7 +1,6 @@ -# Update to 0.2.1 +# Update to 0.3.0 -Fixed the valgrind issue that occurred here: -https://www.stats.ox.ac.uk/pub/bdr/memtests/valgrind/edgebundle/edgebundle-Ex.Rout +added a new edge bundling function ## Test environments @@ -10,6 +9,12 @@ https://www.stats.ox.ac.uk/pub/bdr/memtests/valgrind/edgebundle/edgebundle-Ex.Ro ## R CMD check results -0 errors | 0 warnings | 1 note +0 errors | 0 warnings | 0 note * This is a new release. + + +# Update to 0.2.1 + +Fixed the valgrind issue that occurred here: +https://www.stats.ox.ac.uk/pub/bdr/memtests/valgrind/edgebundle/edgebundle-Ex.Rout