Learn R Programming

alm (version 0.1.9)

almplot: Plot results of a call to the alm function.

Description

Plot results of a call to the alm function.

Usage

almplot(dat, type = NULL, removezero = TRUE)

Arguments

dat
Output from alm (character)
type
One of totalmetrics or history
removezero
Remove data sources with all zeros prior to plotting.

Value

  • A ggplot2 bar plot for `totalmetrics` or line plot for `history`.

Details

You have to specify info='detail' in your call to alm so that you get history and summary data so that either or both can be plotted in this function.

References

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

See Also

alm which is required to use this function.

Examples

Run this code
out <- alm(doi='10.1371/journal.pone.0001543', info='detail')
almplot(out, type='totalmetrics') # just totalmetrics data
almplot(dat=out, type='history') # just historical data
almplot(dat=out) # leaving type as NULL prints both plots

Run the code above in your browser using DataLab