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
citation_network_plot(citations, cited_only, time_axis = "x",
  color_plot = TRUE, custom_plot = FALSE, arrow_gap = 0.015)

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.

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.

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.

Details

The 'citation_network_plot' function

Value

A ggplot object


mariolaespinosa/historicalnetworks documentation built on Dec. 9, 2017, 2:04 p.m.