Learn R Programming

alm (version 0.4.0)

plot_signposts: Plot PLOS article-level metrics data.

Description

This can be used in conjuction with the function alm_signposts.

Usage

plot_signposts(input)

Arguments

input
A data.frame from a search from the alm_signposts function

Details

Note that DOIs are the unit of replication of each study. When plotting, if the prefix is common among all DOIs, then just the end of the DOI, the numeric part is printed to make plots less ugly.

References

See a tutorial/vignette for alm at http://ropensci.org/tutorials/alm_tutorial.html

See Also

alm_signposts

Examples

Run this code
## Not run: 
# # Plot data from a single identifier gives a bar chart
# dat <- alm_signposts(doi="10.1371/journal.pone.0029797")
# plot_signposts(dat)
# 
# # Plot data from many identifiers gives a line chart
# dois <- c('10.1371/journal.pone.0001543','10.1371/journal.pone.0040117',
#    '10.1371/journal.pone.0029797','10.1371/journal.pone.0039395')
# dat <- alm_signposts(doi=dois)
# plot_signposts(dat)
# 
# # software lagotto instance
# urls <- c("https://github.com/najoshi/sickle","https://github.com/lh3/wgsim",
#    "https://github.com/jstjohn/SeqPrep")
# dat <- alm_signposts(url = urls, api_url = "http://software.lagotto.io/api/v5/articles")
# plot_signposts(dat)
# 
# # scopus ids
# ids <- c(68049122102, 14044251458, 48349097292, 28444460441)
# dat <- alm_signposts(scp = ids)
# plot_signposts(dat)
# ## End(Not run)

Run the code above in your browser using DataLab