A sankey showing the one or multi step LUC transitions during the analysed period.

sankeyLand(dataset, legendtable, iterations = 0)

Arguments

dataset

A table of the multi step (lulc_Mulstistep). or one step transitions (lulc_OneStep) generated by contingencyTable.

legendtable

A table containing the LUC legend items and their respective color (tb_legend).

iterations

numeric. Number of iterations in the diagram layout for computation of the depth (y-position) of each node. See sankeyNetwork.

Value

A sankey diagram

See also

Examples


# editing the category names

SL_2002_2014$tb_legend$categoryName <- factor(c("Ap", "FF", "SA", "SG", "aa", "SF",
                                             "Agua", "Iu", "Ac", "R", "Im"),
                                     levels = c("FF", "SF", "SA", "SG", "aa", "Ap",
                                              "Ac", "Im", "Iu", "Agua", "R"))

SL_2002_2014$tb_legend$color <- c("#FFE4B5", "#228B22", "#00FF00", "#CAFF70",
                                  "#EE6363", "#00CD00", "#436EEE", "#FFAEB9",
                                  "#FFA54F", "#68228B", "#636363")

# onestep sankey
sankeyLand(dataset = SL_2002_2014$lulc_Onestep,
           legendtable = SL_2002_2014$tb_legend)

# multistep sankey
sankeyLand(dataset = SL_2002_2014$lulc_Multistep,
           legendtable = SL_2002_2014$tb_legend)