This function plots a previously calculated trend.
Usage
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.