Description Usage Arguments Value Author(s) Examples
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.
1 2 | plot_trend(data, trend = TRUE, data_kind = "", name = "",
axis_name_x = "Time", axis_name_y = "Data [unit]", mid_value = 0)
|
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, ...) |
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
Florine Garcia (florine.garcia@gmail.com)
Pierre L'Hermite (pierrelhermite@yahoo.fr)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.