get_net_cooccur_gexf: Retrieve co-occurrence network for a play in 'GEXF'

View source: R/net.R

get_net_cooccur_gexfR Documentation

Retrieve co-occurrence network for a play in 'GEXF'

Description

get_net_cooccur_gexf() requests a play co-occurrence network in 'GEXF' (Graph Exchange XML Format), given play and corpus names. 'GEXF' is a format used in 'Gephi' — an open source software for network analysis and visualization.

Usage

get_net_cooccur_gexf(play = NULL, corpus = NULL, parse = TRUE, ...)

get_net_relations_gexf(play = NULL, corpus = NULL, ...)

Arguments

play

Character, name of a play (you can find all play names in "playName" column within an object returned by get_dracor). Character vector (longer than 1) is not supported.

corpus

Character, name of the corpus (you can find all corpus names in name column within an object returned by get_dracor_meta).

parse

Logical, if TRUE the result is parsed by xml2::read_xml(), otherwise character value is returned. Default value is TRUE.

...

Additional arguments passed to dracor_api.

Value

'GEXF' data.

Functions

  • get_net_relations_gexf(): Retrieves kinship and other relationship data, following the encoding scheme proposed in \insertCitewiedmer_nathalie_2020_4621778rdracor.

References

\insertAllCited

See Also

get_net_cooccur_igraph get_net_cooccur_metrics get_net_cooccur_graphml get_net_cooccur_edges get_net_relations_igraph

Examples


get_net_cooccur_gexf(play = "lessing-emilia-galotti", corpus = "ger")
# If you want 'GEXF' without parsing by xml2::read_xml():
get_net_cooccur_gexf(
  play = "lessing-emilia-galotti",
  corpus = "ger",
  parse = FALSE
)


Pozdniakov/rdracor documentation built on April 9, 2024, 1:20 a.m.