lucC_plot_bar_events: Plot Barplot Maps

Description Usage Arguments Value Author(s) Examples

Description

Plot barplot over time

Usage

1
2
3
4
5
lucC_plot_bar_events (data_mtx = NULL, data_frequency = NULL,
custom_palette = FALSE, RGB_color = NULL, pixel_resolution = 250,
relabel = FALSE, original_labels = NULL, new_labels = NULL,
legend_text = "Legend:", column_legend = 2,
side_by_side = FALSE)

Arguments

data_mtx

Matrix. A matrix with values obtained from predicates RECUR, EVOLVE, CONVERT or HOLDS

data_frequency

Dataframe. A frequency table of a categorical variable from a data set

custom_palette

Boolean. A TRUE or FALSE value. If TRUE, user will provide its own color palette setting! Default is FALSE

RGB_color

Character. A vector with color names to map legend, for example, c("Green","Blue"). Default is setting scale_colour_hue

pixel_resolution

Numeric. Is a spatial resolution of the pixel. Default is 250 meters considering MODIS 250 m. See more at https://modis.gsfc.nasa.gov/about/specifications.php.

relabel

Boolean. A TRUE or FALSE value. If TRUE, user will provide its own legend text setting! Default is FALSE

original_labels

Character. A vector with original labels from legend text, for example, c("Forest","Pasture").

new_labels

Character. A vector with new labels to legend text, for example, c("Mature_Forest","Pasture1").

legend_text

Character. A text legend to show in plot, such as "Land use transitions:". Default is "Legend:".

column_legend

Integer. A number with the desired number of columns in legend.

side_by_side

Boolean. Make bar of a barplot a side-by-side plot. Default is FALSE.

Value

Plot a barplot in Y axis in square kilometers (Area km^2) = (Number of pixel *(pixel_resolution*pixel_resolution))/(1000*1000)

Author(s)

Adeline M. Maciel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

lucC_plot_bar_events(data_mtx = raster_mtx, custom_palette = TRUE,
RGB_color = c("green", "orange"), pixel_resolution = 232,
relabel = TRUE, original_labels = c("Forest", "Pasture1"),
new_labels = c("Forest", "Pasture"), legend_text = "Legend: ",
column_legend = 1, side_by_side = TRUE)


## End(Not run)

ammaciel/lucCalculus documentation built on May 17, 2019, 6:37 p.m.