citation_network_plot: citation_network_plot

Description Usage Arguments Details Value

View source: R/citation_network_plot.R

Description

citation_network_plot generates plots of citation networks, depicting works as dots ("nodes", in network parlance) and citations as arrows ("edges") from cited works to citing works.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
citation_network_plot(
  citations,
  cited_only,
  stages,
  root_source,
  label_only_cited = FALSE,
  color_plot = TRUE,
  custom_plot = FALSE,
  arrow_gap = 0.015,
  time_axis = "x",
  seed = 324
)

Arguments

citations

A dataframe representing classified citations such as that generated by classify_citations.

cited_only

A dataframe representing the works that are only cited by—not citing—the other works in citations. This need only be specified if multiple classifications are employed (e.g., "agree" and "disagree") and not all of the only-cited works fall into the first classification. Otherwise, this information will be automatically generated from citations.

color_plot

Should multiple classifications be denoted by different colors? If not, they will indicated by different shapes.

custom_plot

Should the function return a bare plot suitable for customization using ggnetwork functions?

arrow_gap

A parameter that will shorten the arrows that link works in order to avoid overplotting the dots that represent the works; larger values may be desirable if custom_plot is set to TRUE and the size of the dots will be increased using ggnetwork's geom_nodes function.

time_axis

Set to "y" to specify that time should start from the bottom of the plot or "x", the default, to specify that time flows from left to right.

Details

The 'citation_network_plot' function

Value

A ggplot object


mariolaespinosa/historicalnetworks documentation built on Feb. 9, 2022, 12:31 p.m.