figure1b: Code that creates figure 1b found in Legagneux et al. 2018

Description Usage Arguments Value Author(s) Examples

Description

Code that creates a figure presenting the number of worldwide scientific papers published in peer-reviewed literature on biodiversity (colBD) and climate change (colCC) from 1991 to 2016.

Usage

1
figure1b(time, CC_f, PB_f, colCC = "#594023", colBD = "#9eb844")

Arguments

time

time values.

CC_f

Time series values of the research funding allocated to climate change.

PB_f

Time series values of the research funding allocated to biodiversity.

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 a figure.

Author(s)

Kevin Cazelles & Nicolas Casajus

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Not run:
# data(fundingUSCAN)
# grDevices::png('inst/fig/ms-figure1b.png', height = 5, width = 7, res = 300, unit = 'in')
#   figure1b(
#     fundingUSCAN$year,
#     fundingUSCAN$CC_CA + fundingUSCAN$CC_US,
#     fundingUSCAN$BD_CA + fundingUSCAN$BD_US,
#     colCC = '#b57653', colBD = '#8bcf35'
#   )
# grDevices::dev.off()

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