plot_bars: Plot frequency distribution with horizontal bara

Description Usage Arguments Examples

Description

SHows a bar plot with words on the y-axis and frequency on the x-axis

Usage

1
plot_bars(df, gram.min = 1, gram.max = 1, min.freq = 25)

Arguments

df

a dataframe with paper results

gram.min

minimum number of grams

gram.max

maximum number of grams

min.freq

minimum frequency of the words to be plotted

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
my_url <- make_search_url(query = "well test",
                          dc_type = "conference-paper",
                          from_year = 2017,
                          to_year   = 2018,
                          how = "all")
df <- read_multidoc(my_url)   # create a dataframe of papers
(tf <- term_frequency(df))    # create a term frequency table
min_freq <- min(head(tf, 20)$freq)
plot_bars(df, min.freq = min_freq)

## End(Not run)

petro.One documentation built on May 2, 2019, 3:10 p.m.