Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
12d20ae
Improved scoping manipulations by recording changes to network name
jhollway Jun 23, 2025
6f5d1c6
Improved pathing functions by recording path type to network name
jhollway Jun 23, 2025
a7a503f
better NA handling in data frames
schochastics Jun 30, 2025
7de9fac
only use `+.ggplot` when both sides are ggplot
teunbrand Jun 30, 2025
ef37bd2
added dummy node for NA node
schochastics Jul 3, 2025
c9abfa5
Merge pull request #109 from schochastics/NA-dataframe
jhollway Jul 3, 2025
2c3b05a
Added to_matching() testing
jhollway Jul 3, 2025
20ade86
Merge pull request #110 from teunbrand/compat_ggplot2_400
jhollway Jul 3, 2025
b8e84ba
Merge branch 'develop' of https://github.com/stocnet/manynet into dev…
jhollway Jul 3, 2025
2cec7d8
Renamed node_coreness() to node_kcoreness()
jhollway Jul 7, 2025
003d7b9
node_coreness() now implements Borgatti and Everett's continuous core…
jhollway Jul 7, 2025
3f5387b
net_core() now includes method options for calculating correlation, d…
jhollway Jul 7, 2025
9775e5a
Dropped the palettes from manynet
jhollway Jul 7, 2025
541dddf
Dropped remaining layouts
jhollway Aug 22, 2025
7edd80d
Dropped all the autograph*() functions
jhollway Aug 22, 2025
75288d0
Moved themes to autograph
jhollway Aug 22, 2025
e3163dc
Dropped remaining plot functions
jhollway Aug 22, 2025
41c2287
Dropped ggplot2 reexports
jhollway Aug 22, 2025
98850ab
Dropped unnecessary dependencies
jhollway Aug 22, 2025
731ea32
Avoided using graph*() in examples
jhollway Aug 22, 2025
f147b4a
Moved autograph related tests to that package
jhollway Aug 22, 2025
df0be5d
Added mdate pillar shaft, moved thisRequiresBio() to autograph, fixed…
jhollway Aug 22, 2025
6ec3199
NEWS and #minor bump
jhollway Aug 22, 2025
66779f8
Dropped autograph
jhollway Aug 22, 2025
f23d5f1
Updated package description to be more accurate
jhollway Aug 22, 2025
d8be929
Updated the README
jhollway Aug 22, 2025
0094c92
Sent to CRAN
jhollway Aug 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 7 additions & 18 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Package: manynet
Title: Many Ways to Make, Modify, Map, Mark, and Measure Myriad Networks
Version: 1.5.1
Date: 2025-06-23
Description: Many tools for making, modifying, mapping, marking, measuring,
Title: Many Ways to Make, Modify, Mark, and Measure Myriad Networks
Version: 1.6.0
Date: 2025-08-22
Description: Many tools for making, modifying, marking, measuring,
and motifs and memberships of many different types of networks.
All functions operate with matrices, edge lists, and 'igraph', 'network', and 'tidygraph' objects,
and on one-mode, two-mode (bipartite), and sometimes three-mode networks.
on directed, multiplex, multimodal, signed, and other networks.
The package includes functions for importing and exporting, creating and generating networks,
modifying networks and node and tie attributes,
and describing and visualizing networks with sensible defaults.
and describing networks with sensible defaults.
URL: https://stocnet.github.io/manynet/
BugReports: https://github.com/stocnet/manynet/issues
License: MIT + file LICENSE
Expand All @@ -20,25 +20,16 @@ Depends: R (>= 3.6.0)
Imports:
cli,
dplyr (>= 1.1.0),
ggplot2,
ggraph,
igraph (>= 2.1.0),
network,
pillar,
tidygraph
Suggests:
BiocManager,
concaveman,
gganimate,
ggdendro,
ggforce,
gifski,
graphlayouts,
autograph,
knitr,
learnr,
methods,
netdiffuseR,
patchwork,
readxl,
rmarkdown,
RSiena,
Expand All @@ -47,8 +38,6 @@ Suggests:
tibble,
tidyr,
xml2
Enhances:
Rgraphviz
Authors@R:
c(person(given = "James",
family = "Hollway",
Expand Down
97 changes: 2 additions & 95 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by roxygen2: do not edit by hand

S3method("+",ggplot)
S3method(add_nodes,igraph)
S3method(add_nodes,network)
S3method(add_nodes,tbl_graph)
Expand Down Expand Up @@ -140,6 +139,7 @@ S3method(net_dims,igraph)
S3method(net_dims,matrix)
S3method(net_dims,network)
S3method(pillar_shaft,logi)
S3method(pillar_shaft,mdate)
S3method(print,diff_model)
S3method(print,learn_model)
S3method(print,mnet)
Expand Down Expand Up @@ -315,7 +315,6 @@ export(add_node_attribute)
export(add_nodes)
export(add_tie_attribute)
export(add_ties)
export(aes)
export(apply_changes)
export(arrange_ties)
export(as_changelist)
Expand All @@ -329,9 +328,6 @@ export(as_network)
export(as_nodelist)
export(as_siena)
export(as_tidygraph)
export(autographd)
export(autographr)
export(autographs)
export(bind_node_attributes)
export(bind_ties)
export(clear_glossary)
Expand Down Expand Up @@ -372,14 +368,7 @@ export(generate_random)
export(generate_scalefree)
export(generate_smallworld)
export(generate_utilities)
export(ggplot)
export(ggsave)
export(ggtitle)
export(gloss)
export(graphr)
export(graphs)
export(grapht)
export(guides)
export(is.tbl_graph)
export(is_acyclic)
export(is_aperiodic)
Expand Down Expand Up @@ -408,22 +397,6 @@ export(join_ties)
export(k_elbow)
export(k_silhouette)
export(k_strict)
export(labs)
export(layout_tbl_graph_alluvial)
export(layout_tbl_graph_concentric)
export(layout_tbl_graph_configuration)
export(layout_tbl_graph_dyad)
export(layout_tbl_graph_hexad)
export(layout_tbl_graph_hierarchy)
export(layout_tbl_graph_ladder)
export(layout_tbl_graph_lineage)
export(layout_tbl_graph_multilevel)
export(layout_tbl_graph_pentad)
export(layout_tbl_graph_quad)
export(layout_tbl_graph_railway)
export(layout_tbl_graph_tetrad)
export(layout_tbl_graph_triad)
export(many_palettes)
export(mutate)
export(mutate_changes)
export(mutate_net)
Expand Down Expand Up @@ -632,6 +605,7 @@ export(node_is_pendant)
export(node_is_random)
export(node_is_recovered)
export(node_is_universal)
export(node_kcoreness)
export(node_kernighanlin)
export(node_leading_eigen)
export(node_leiden)
Expand Down Expand Up @@ -685,42 +659,10 @@ export(rename)
export(rename_nodes)
export(rename_ties)
export(run_tute)
export(scale_color_centres)
export(scale_color_ethz)
export(scale_color_iheid)
export(scale_color_rug)
export(scale_color_sdgs)
export(scale_color_uzh)
export(scale_colour_centres)
export(scale_colour_ethz)
export(scale_colour_iheid)
export(scale_colour_rug)
export(scale_colour_sdgs)
export(scale_colour_uzh)
export(scale_edge_color_centres)
export(scale_edge_color_ethz)
export(scale_edge_color_iheid)
export(scale_edge_color_rug)
export(scale_edge_color_sdgs)
export(scale_edge_color_uzh)
export(scale_edge_colour_centres)
export(scale_edge_colour_ethz)
export(scale_edge_colour_iheid)
export(scale_edge_colour_rug)
export(scale_edge_colour_sdgs)
export(scale_edge_colour_uzh)
export(scale_fill_centres)
export(scale_fill_ethz)
export(scale_fill_iheid)
export(scale_fill_rug)
export(scale_fill_sdgs)
export(scale_fill_uzh)
export(scale_size)
export(select)
export(select_changes)
export(select_nodes)
export(select_ties)
export(set_manynet_theme)
export(snet_abort)
export(snet_info)
export(snet_minor_info)
Expand All @@ -734,10 +676,6 @@ export(snet_unavailable)
export(snet_warn)
export(summarise_ties)
export(table_data)
export(theme_ethz)
export(theme_iheid)
export(theme_rug)
export(theme_uzh)
export(tie_attribute)
export(tie_betweenness)
export(tie_closeness)
Expand Down Expand Up @@ -809,8 +747,6 @@ export(write_matrix)
export(write_nodelist)
export(write_pajek)
export(write_ucinet)
export(xlab)
export(ylab)
importFrom(cli,cli_div)
importFrom(cli,cli_end)
importFrom(cli,cli_inform)
Expand All @@ -825,39 +761,12 @@ importFrom(dplyr,distinct)
importFrom(dplyr,everything)
importFrom(dplyr,filter)
importFrom(dplyr,group_by)
importFrom(dplyr,left_join)
importFrom(dplyr,mutate)
importFrom(dplyr,rename)
importFrom(dplyr,select)
importFrom(dplyr,summarise)
importFrom(dplyr,tibble)
importFrom(dplyr,ungroup)
importFrom(ggplot2,aes)
importFrom(ggplot2,arrow)
importFrom(ggplot2,geom_point)
importFrom(ggplot2,geom_segment)
importFrom(ggplot2,geom_text)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,ggsave)
importFrom(ggplot2,ggtitle)
importFrom(ggplot2,guides)
importFrom(ggplot2,labs)
importFrom(ggplot2,scale_alpha_manual)
importFrom(ggplot2,scale_color_brewer)
importFrom(ggplot2,scale_fill_brewer)
importFrom(ggplot2,scale_size)
importFrom(ggplot2,theme_void)
importFrom(ggplot2,unit)
importFrom(ggplot2,xlab)
importFrom(ggplot2,ylab)
importFrom(ggraph,create_layout)
importFrom(ggraph,geom_conn_bundle)
importFrom(ggraph,geom_edge_link)
importFrom(ggraph,geom_node_label)
importFrom(ggraph,geom_node_point)
importFrom(ggraph,geom_node_text)
importFrom(ggraph,get_con)
importFrom(ggraph,scale_edge_width_continuous)
importFrom(igraph,E)
importFrom(igraph,V)
importFrom(igraph,add_edges)
Expand Down Expand Up @@ -894,12 +803,10 @@ importFrom(igraph,edge_density)
importFrom(igraph,eulerian_path)
importFrom(igraph,feedback_arc_set)
importFrom(igraph,fit_power_law)
importFrom(igraph,get.edgelist)
importFrom(igraph,graph_from_adjacency_matrix)
importFrom(igraph,graph_from_biadjacency_matrix)
importFrom(igraph,graph_from_data_frame)
importFrom(igraph,graph_from_incidence_matrix)
importFrom(igraph,gsize)
importFrom(igraph,has_eulerian_path)
importFrom(igraph,induced_subgraph)
importFrom(igraph,is_bipartite)
Expand Down
42 changes: 42 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
# manynet 1.6.0

## Package

- Dropped viz-related dependencies: `{ggplot2}`, `{ggraph}`, `{patchwork}`,
`{ggdendro}`, `{concaveman}`, `{gifski}`, `{graphlayouts}`, `{ggforce}`,
and `{BiocManager}`

## Classes

- Added mdate pillar shaft for pretty printing of NAs in messydate variables

## Modifying

- Improved `to_no_missing()` to record missing removal
- Improved `to_no_isolates()` to record isolate removal
- Improved `to_giant()` to record giant component scoping
- Improved `to_matching()` to record matching
- Fixed `to_matching()` triggering warnings from handling NAs (thanks @schochastics for fixing #109)
- Improved `to_mentoring()` to record mentoring
- Improved `to_eulerian()` to record Eulerian pathing

## Measuring

- Improved `net_core()` with method options for calculating correlation, distance, ndiff, and diff

## Membership

- Improved `node_coreness()` to implement Borgatti and Everett's continuous coreness algorithm
- Moved previous functionality of `node_coreness()` to `node_kcoreness()`

## Mapping

- Moved `graphr()`, `graphs()`, and `grapht()` to `{autograph}`
- Moved palette functionality to `{autograph}`
- Moved remaining layouts to `{autograph}`
- Moved theme functionality to `{autograph}`
- Dropped remaining plot functions
- Dropped or avoided using `{autograph}`-related functions in examples to
make package lighter
- Please see `{autograph}` for continued development of these features

# manynet 1.5.1

## Package
Expand Down
12 changes: 6 additions & 6 deletions R/make_generate.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ NULL
#' _Publicationes Mathematicae_. 6: 290–297.
#' @importFrom igraph sample_bipartite sample_gnp sample_gnm
#' @examples
#' graphr(generate_random(12, 0.4))
#' # graphr(generate_random(c(6, 6), 0.4))
#' generate_random(12, 0.4)
#' # generate_random(c(6, 6), 0.4)
#' @export
generate_random <- function(n, p = 0.5, directed = FALSE, with_attr = TRUE) {
if(is_manynet(n)){
Expand Down Expand Up @@ -243,8 +243,8 @@ NULL
#' \doi{10.1038/30918}.
#' @importFrom igraph sample_smallworld
#' @examples
#' graphr(generate_smallworld(12, 0.025))
#' graphr(generate_smallworld(12, 0.25))
#' generate_smallworld(12, 0.025)
#' generate_smallworld(12, 0.25)
#' @export
generate_smallworld <- function(n, p = 0.05, directed = FALSE, width = 2) {
directed <- infer_directed(n, directed)
Expand All @@ -270,8 +270,8 @@ generate_smallworld <- function(n, p = 0.05, directed = FALSE, width = 2) {
#' _Science_ 286(5439):509–12.
#' \doi{10.1126/science.286.5439.509}.
#' @examples
#' graphr(generate_scalefree(12, 0.25))
#' graphr(generate_scalefree(12, 1.25))
#' generate_scalefree(12, 0.25)
#' generate_scalefree(12, 1.25)
#' @export
generate_scalefree <- function(n, p = 1, directed = FALSE) {
directed <- infer_directed(n, directed)
Expand Down
5 changes: 0 additions & 5 deletions R/make_play.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ NULL
#' original network.
#' @examples
#' smeg <- generate_smallworld(15, 0.025)
#' plot(play_diffusion(smeg, recovery = 0.4))
#' #graphr(play_diffusion(ison_karateka))
#' @export
play_diffusion <- function(.data,
seeds = 1,
Expand Down Expand Up @@ -406,9 +404,6 @@ play_learning <- function(.data,
#' latticeEg <- add_node_attribute(latticeEg, "startValues", startValues)
#' latticeEg
#' play_segregation(latticeEg, "startValues", 0.5)
#' # graphr(latticeEg, node_color = "startValues", node_size = 5) +
#' # graphr(play_segregation(latticeEg, "startValues", 0.2),
#' # node_color = "startValues", node_size = 5)
#' @export
play_segregation <- function(.data,
attribute,
Expand Down
2 changes: 0 additions & 2 deletions R/make_read.R
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,6 @@ write_graphml <- function(.data,
#' @examples
#' # mnet <- read_cran()
#' # mnet <- to_ego(mnet, "manynet", max_dist = 2)
#' # graphr(mnet, layout = "hierarchy",
#' # edge_color = "type", node_color = "Compilation")
#' @export
read_cran <- function(pkg = "all"){
snet_progress_step("Downloading data about available packages from CRAN")
Expand Down
3 changes: 0 additions & 3 deletions R/manip_correlation.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ NULL
#' @param with_attr Logical whether any attributes of the object
#' should be retained.
#' By default TRUE.
#' @examples
#' graphr(ison_adolescents, node_size = 4)
#' graphr(to_permuted(ison_adolescents), node_size = 4)
#' @export
to_permuted <- function(.data, with_attr = TRUE) {
out <- as_matrix(.data)
Expand Down
1 change: 0 additions & 1 deletion R/manip_format.R
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ to_acyclic.network <- function(.data) {
#' @importFrom igraph complementer
#' @examples
#' to_anti(ison_southern_women)
#' #graphr(to_anti(ison_southern_women))
#' @export
to_anti <- function(.data) UseMethod("to_anti")

Expand Down
Loading
Loading