trend_facet: Faceted Trend Plot

Description Usage Arguments Examples

Description

This function creates a data.frame of the class trend_facet, which has its own plot method which is a faceted plot.

Usage

1

Arguments

x

A trend2long or gtrend_scraper object.

...

ignored.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Not run: 
library(dplyr)
(out <- gtrend_scraper("tyler.rinker@gmail.com", "password", "dog bite"))

trend_facet(out) %>%
   plot

plotflow::unbalanced_facet_axis(trend_facet(out) %>%
    plot(ncol=3))

plotflow::unbalanced_facet_axis(trend_facet(out) %>%
    plot(rect.alpha=.4))


library(dplyr)
out <- gtrend_scraper("tyler.rinker@gmail.com", "password",
    c("ebola", "sars", "hiv", "aids", "influenza", "flu", "the cold"))

trend2long(out) %>%
   plot()

trend2long(out) %>%
   trend_facet %>%
   plot

out %>%
   trend_facet %>%
   plot

## End(Not run)

trinker/gtrend documentation built on May 31, 2019, 8:43 p.m.