plot_sites_trend_H: Plot H against Date

View source: R/plot_sites_trend_H.R

plot_sites_trend_HR Documentation

Plot H against Date

Description

Plot Shannon's H on the Y axis and dates on the X axis with uniform spacing for each date and a line of best fit.

Usage

plot_sites_trend_H(
  clusterised_object,
  xlabel = "",
  ylabel = "Diversity (H)",
  main_title = "Shannon's H over Time"
)

Arguments

clusterised_object

An object created by the clusterise_sites function.

xlabel

The X axis label.

ylabel

The Y axis label with "Diversity (H)" as default.

main_title

The main title with "Shannon's H over Time" as default.

Value

Returns a base R plot in the plot panel, depicting the trend of diversity index values over time.

Examples

# create a trend chart showing the diversity over time at the Caquetá province
Colombia_Caquetá_dataframe <- subset(Colombia, stateProvince == "Caquetá")

clusterised_Caquetá <- clusterise_sites(dataframe = Colombia_Caquetá_dataframe,
                                       cluster_min_length = 30,
                                       group_radius = 20000
)

plot_sites_trend_H(clusterised_Caquetá)

DivInsight documentation built on Aug. 12, 2023, 9:06 a.m.