plot_trend: Plot trend

Description Usage Arguments Value Examples

View source: R/plot_trend.R

Description

This function plots a previously calculated trend.

Usage

1
plot_trend(df, column_name)

Arguments

df

Data frame containing at least 4 column: lat (latitude), lon (longitude), slope and an additional user-defined column column_name.

column_name

name of the column to use for grouping the results.

Value

Two plots, side-by-side, the first showing the distribution of the trend over a map, based on the slope of the linear model that describes the trend. The second plot shows a boxplot of the slope grouped based on the column Region. Region and slope can be user-defined.

Examples

1
2
3
4
## Not run: 
  plot_trend(df, Region)

## End(Not run)

cvitolo/rnrfa documentation built on Feb. 16, 2021, 2:39 p.m.