View source: R/author-network.R
| author_network | R Documentation |
Constructs a network between authors using one of four relationship types and any of 13 counting methods, including 9 position-dependent methods that respect author byline order.
author_network(
data,
type = "collaboration",
counting = "full",
similarity = "none",
threshold = 0,
min_occur = 1L,
position_weights = c(1, 0.8, 0.6, 0.4),
first_last_weight = 2,
attention = NULL,
top_n = NULL,
self_loops = FALSE,
deduplicate = TRUE,
format = "edgelist",
authors = "authors",
sep = ";",
references_sep = ";",
strip_quotes = TRUE,
id = NULL
)
data |
A data frame with at least |
type |
Character. Relationship type:
|
counting |
Character. Counting method. Position-independent methods
( |
similarity |
Character. Similarity measure: |
threshold |
Numeric. Minimum edge weight. Default 0. |
min_occur |
Integer. Minimum number of papers for an author to be included. Default 1. |
position_weights |
Numeric vector. Custom weights for
|
first_last_weight |
Numeric. Multiplier for |
attention |
Character or NULL. Attention-based weighting independent of
|
top_n |
Integer or NULL. Return only the top n edges by weight. Default NULL (all edges). |
self_loops |
Logical. If |
deduplicate |
Logical. If |
format |
Character. Output format:
|
authors |
Character. Name of the column containing authors. Default
|
sep |
Character. Separator used to split the entity column when it
is a plain character column rather than a list-column, e.g. |
references_sep |
Character. Separator for the |
strip_quotes |
Logical. If |
id |
Optional. Name of the column to use as the work identifier
(the matrix-row dimension). If |
Depends on format: a bibnets_network data frame (default),
a Gephi-ready data frame, an igraph graph, a cograph_network, or a
sparse matrix.
data(biblio_data)
author_network(biblio_data, "collaboration")
author_network(biblio_data, "collaboration", counting = "harmonic")
author_network(biblio_data, "collaboration", counting = "geometric",
similarity = "association")
# Custom CSV: any column name, any separator
d <- data.frame(id = 1:3,
Researchers = c("Smith J, Doe A", "Smith J, Lee K",
"Doe A, Lee K"))
author_network(d, authors = "Researchers", sep = ",")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.