lucC_plot_raster: Plot RasterBrick

Description Usage Arguments Value Author(s) Examples

View source: R/lucC_plot_raster_brick.r

Description

Plot RasterBrick in ggplot2.

Usage

1
2
3
4
lucC_plot_raster(raster_obj = NULL, timeline = NULL,
label = NULL, custom_palette = FALSE, RGB_color = NULL,
plot_ncol = 5, relabel = FALSE, original_labels = NULL,
new_labels = NULL, legend_text = "Legend:", columns_legend = 4)

Arguments

raster_obj

Raster. A raster stack with classified images

timeline

Character. A list of all dates of classified raster, timeline

label

Character. All labels of each value of pixel from classified raster

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 of original raster, same order. Default is setting scale_colour_hue

plot_ncol

Numeric. A number of columns to show the maps. Default is 5

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. Default is "Legend:"

columns_legend

Integer. A number with the desired number of columns in legend. Default is 4

Value

Plot with input data as colored map

Author(s)

Adeline M. Maciel

Examples

1
2
3
4
5
6
7
## Not run: 

lucC_plot_raster(raster_obj = rb_sits, timeline = timeline, label = label,
custom_palette = TRUE, RGB_color = colors_1)


## End(Not run)

ammaciel/sits.LUC.Calculus documentation built on May 3, 2019, 9:36 p.m.