Skip to contents

This function generates a side by side bar plot comparing the frequency of land cover types in two different years.

Usage

plot_lc_freq(lc_table, column_lc_type, column_T1, column_T2)

Arguments

lc_table

A data frame containing land cover types and their frequency in two different years.

column_lc_type

The column name of land cover types in lc_table.

column_T1

The column name of the frequency data for Timepoint 1 in lc_table.

column_T2

The column name of the frequency data for Timepoint 2 in lc_table.

Value

A ggplot object representing the side by side bar plot.

Examples

 if (FALSE) {
plot_lc_freq(lc_table = lc_tbl,
             column_lc_type = "Jenis tutupan lahan",
             column_T1 = "NTT_LC90_count",
             column_T2 = "NTT_LC20_count")
}