plot_timeline: Timeline Plot

plot_timelineR Documentation

Timeline Plot

Description

Plot timeline for selected variable (possibly across various groups).

Usage

plot_timeline(
  data,
  x,
  y = "n",
  group = NULL,
  nmin = 0,
  mode = "absolute",
  time.window = 10
)

Arguments

data

data.frame for plotting

x

time variable. Numeric field to summarize in the timeline. The number of entries (title count) per decade is shown by default.

y

outcome variable

group

Optional. Name for a data field that indicates groups to compare. If given, the different groups are indicated by lines.

nmin

Include only entries with at least nmin absolute frequency

mode

"absolute" or "relative"

time.window

Time window for the timeline in years. Default: 10 (publication decade).

Value

List:

  • plotggplot object

  • tablesummary table

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation("bibliographica")

Examples

## Not run: plot_timeline(df, "publication_year")

rOpenGov/bibliographica documentation built on April 10, 2022, 8:51 p.m.