This is the template object for an R6 land-use legend that can be linked to a HibDatabase object. The legend should contain information on land-use and management/intensity types for sites with the database.
Public fields
last_update(
character())
Identifies the most recent update to the legend object (YYYY-MM-DD)input_data(
character())
Identifies the source of the input data, either "file ([...])", or "dataframe [...]".lu_df(
data.frame)
Contains the LU legend dataframe, i.e, A data.frame containing columns for "SSBS", "Predominant_land_use", "Use_intensity" and "LUI".land_use(
character())
The unique values of lu_df$Predominant_land_use.management(
character())
The unique values of lu_df$Use_intensityland_use_management(
character())
The unique values of lu_df$LUI
Methods
HibLULegend$new()
Creates a new instance of this R6 class. Note, this object is constructed via the hib_create_lu_legend function found within this package.
Usage
HibLULegend$new(input, input_chr)Arguments
input(
character()(rds filepath) ordata.frame)
The source data used to generate the LU legendinput_chr(
character())
Text indicating the source of the data.
HibLULegend$checkself()
Self check function to ensure that the legend data.frame contains the correct columns.
HibLULegend$plot()
Function to generate figures summarising the data present in the LU legend
Arguments
x_var(
character()) Options are: "land-use", "use-intensity", "land-use:use-intensity".