autoplot.newsfreq: Autoplot for 'newsfreq' objects

Description Usage Arguments Value

View source: R/newsfreq.R

Description

Quick method with sane defaults for generating a ggplot plot for news_search results.

Usage

1
2
3
## S3 method for class 'newsfreq'
autoplot(data, breaks = "year", label_format = "%Y",
  value = "count", add_point = FALSE)

Arguments

data

a newsfreq object

breaks

A character string, containing one of "day", "week", "month", "quarter" or "year". This can optionally be preceded by a (positive or negative) integer and a space, or followed by "s". Passed to scale_x_date. Defaults to "year".

label_format

passed to scale_x_date. Defaults to "%Y"

value

either "count" for raw article counts or "percent" Defaults to "count".

add_point

add points to the lines? Default "FALSE" (do not plot points)

Value

ggplot object


hrbrmstr/newsfreq documentation built on May 19, 2019, 8:19 a.m.