plot_far: 'plot_far' create a symetric double y-axis plot for the...

Description Usage Arguments Examples

Description

plot_far create a symetric double y-axis plot for the evolution FAR and the RR

Usage

1
plot_far(ic_mat, axis_trans, main = "", xlim, ylim, col = NULL)

Arguments

ic_mat

a data_frame contaning the RR estimates and their confidence intervales and the rescaled value of RR (either RRal or RRel, see axis_trans)

axis_trans

the choice of doublei : axis = "al" for a symetric atan(log(y)) axis ; axis_trans = "el" for a symetrized FAR axis

main

the title of the plot

xlim

a vector of two values for the limits of the x-axis

ylim

a vector of two values for the limits of the y-axis

col

a vector of colors for custom colors, should be the same length as the number of different values of the ic_mat method column.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(FARg)
model <- "cnrm"
#load data from the package
data(list=model)
# formating data, e.g passing from temperature to anomalie, keep only hist
# and rcp runs
mdata <- format_data(get(model))
if(model != "obs") mdata <- select_continuous_run(mdata)
ans <- compute_far_simple.default(mdata,
 y="eur_tas", x="gbl_tas", time="year",
  xp=1.6, stat_model=gauss_fit, ci_p=0.9)
plot_far(ans$ic_far, axis_trans="al", col=gg_color_hue(2))

thaos/FARallnat documentation built on May 25, 2019, 8:18 a.m.