trends: Create a line graph with trends

Description Usage Arguments Value Examples

View source: R/trends.R

Description

a line plot

Usage

1
2
trends(df, x = NULL, y = NULL, start = NULL, end = NULL,
  weight = NULL)

Arguments

df

a data.frame as input

x

the column for the x axis

y

the value for the y axis (use n if count is generated by the function)

start

start year (numeric)

end

end year (numeric)

weight

The column to use as the weight (e.g. organisation, country etc)

Value

plot

Examples

1
## Not run: trends(lens, x = "publication_year", y = n, start = 1990, end = 2016)

poldham/kenlitr documentation built on Nov. 5, 2019, 12:59 a.m.