Learn R Programming

rplos (version 0.4.1)

plot_throughtime: Plot results through time for serach results from PLoS Journals.

Description

Plot results through time for serach results from PLoS Journals.

Usage

plot_throughtime(terms, limit = NA, gvis = FALSE,
  key = getOption("PlosApiKey", stop("need an API key for PLoS Journals")),
  ..., curl = getCurlHandle())

Arguments

terms
search terms (character)
limit
number of results to return (integer)
gvis
use google visualization via the googleVis package (logical)
key
your PLoS API key, either enter, or loads from .Rprofile
...
optional additional curl options (debugging tools mostly)
curl
If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

Value

  • Number of search results (vis = FALSE), or number of search in a table and a histogram of results (vis = TRUE).

Examples

Run this code
plot_throughtime('phylogeny', 300)
plot_throughtime(list('drosophila','monkey'), 100)
plot_throughtime(list('drosophila','flower'), 100, TRUE)

Run the code above in your browser using DataLab