wdesr_load_and_plot: Wrapper to load and plot ESR graphs.

View source: R/wikidataESR.R

wdesr_load_and_plotR Documentation

Wrapper to load and plot ESR graphs.

Description

Conveniently call wdesr_get_graph and then wdesr_ggplot_graph.

Usage

wdesr_load_and_plot(
  wdid,
  props = c("composante", "associƩ"),
  depth = 3,
  active_only = FALSE,
  plot_type = "ggplot",
  ...
)

Arguments

wdid

The wikidata id of the root.

props

The properties to follows.

depth

The depth of the following

active_only

TRUE to filter dissolved universities (default to FALSE).

plot_type

Either "ggplot" or "plotly" (default to ggplot).

...

Additionnal parameters for the plot; see wdesr_ggplot_graph for details.

Value

A ggplot or a plotly.

Author(s)

Julien Gossa, gossa@unistra.fr

References

See Also

wdesr_clear_cache

Examples

wdesr_load_and_plot("Q61716176",c('composante','associƩ'), 1,
  node_size = c(10,30), label_sizes = c(3,5), arrow_gap = 0.0,
  node_label = "alias", node_type = "text",
  edge_label = FALSE)

cpesr/wikidataESR documentation built on Sept. 14, 2024, 5:51 a.m.