figure2: Code that creates figure 2 found in Legagneux et al. (2018)

Description Usage Arguments Value Author(s) Examples

Description

Code that creates figure 2, that is the number of newspaper articles published per month on biodiversity (colBD) or climate change (colCC) issues in US, Canada and UK. Detected peaks (plain dots) and associated events are shown. Peaks without associated events (empty dots) could not be associated with a priori events. Events that embraced both CC and BD issues are written in bold.

Usage

1
figure2(pts, newsPapers, colCC = "#594023", colBD = "#9eb844")

Arguments

pts

A dataframe of events.

newsPapers

Monthly publications – Canada + USA + UK.

colCC

A specification for the first color associated with climate change data.

colBD

A specification for the second color associated with biodiversity data.

Value

Creates figure 2.

Author(s)

Nicolas Casajus & Kevin Cazelles

Examples

1
2
3
4
5
6
## Not run: 
data(events); data(newsPapers);
grDevices::png(file='inst/fig/ms-figure2.png', width = 8, height = 6, res = 300, unit = 'in')
 figure2(events, newsPapers)

## End(Not run)

KevCaz/burningHouse documentation built on June 15, 2019, 9:47 a.m.