plot_trend: Plot data and Mann-Kendall, Pettitt, Sen, Sequential...

Description Usage Arguments Value Author(s) Examples

Description

Plot two graphs, the first one with chronologically data and or not Mann-Kendall test results (trend), Pettitt test (breaking point) and Sen slope test (regression).
Second one with Sequential Mann-Kendall test.

Usage

1
2
plot_trend(data, trend = TRUE, data_kind = "", name = "",
  axis_name_x = "Time", axis_name_y = "Data [unit]", mid_value = 0)

Arguments

data

[zoo] Vector with daily, monthly, seasonnal or annual with date in %Y-%m-%d

trend

[boolean] Add or not results of different trend and breaking point test

data_kind

[character] Indicate the kind of input data (temperature, precipitation, discharge, ...)

name

[character] Indicate the name of input data (France, World, n°81124, ...)

axis_name_x

[character] Indicate axis x title name (Year, Month, Season, Day)

axis_name_y

[character] Indicate axis y title name (Precipitation, Total discharge, Mean annual temperature, ...)

Value

If (trend == TRUE) two grpahs, first one with data and trend results, second one with sequential Mann-Kendall test

If (trend == FALSE) one graph with data only

Author(s)

Florine Garcia (florine.garcia@gmail.com)

Pierre L'Hermite (pierrelhermite@yahoo.fr)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Loading data
data("dailyPrec_bv1")

## Plot without trends
#'plot_trend(dailyPrec, trend = FALSE, data_kind = "Precipitation", name = "Paris",
axis_name_x = "Date", axis_name_y = Monthly precipitation (mm/month),
midvalue = 0)

## Plot with trends
plot_trend(dailyPrec, trend = TRUE, data_kind = "Precipitation", name = "Paris",
axis_name_x = "Date", axis_name_y = Monthly precipitation (mm/month),
midvalue = 0)

flogrc/piflow documentation built on May 24, 2019, 7:34 a.m.