filterToPlot: Filter data for plotting function.

Description Usage Arguments Value

View source: R/plotratings.R

Description

Filter data for plotting function.

Usage

1
2
3
filterToPlot(showNames, chosenRating, seasons = list(1:defaultSeasons,
  1:defaultSeasons), minRating = 0, maxRating = 10,
  minDate = defaultMinDate, maxDate = defaultMaxDate)

Arguments

showNames

chr vector with one or two full names of shows.

chosenRating

chr, one of vales "imdbRating", "nielsenRating", "vs".

seasons

list with vectors of seasons to display.

minRating

dbl, only episodes with higher rating will be displayed.

maxRating

dbl, only episodes with lower rating will be displayed.

minDate

date, minimum air date to display.

maxDate

date, maximum air date to display.

Value

list of two data frame: first with data for background line, second with data for chosen shows.


mstaniak/comicbookshows documentation built on Aug. 26, 2019, 6:18 p.m.