lucC_plot_maps_input: Plot Input Maps

Description Usage Arguments Value Author(s) Examples

Description

Plot map ggplot2 for all input data

Usage

1
2
3
lucC_plot_maps_input (data_tb = NULL, EPSG_WGS84 = TRUE, 
custom_palette = FALSE, RGB_color = NULL, plot_ncol = NULL,
relabel = FALSE, original_labels = NULL, new_labels = NULL)

Arguments

data_tb

Tibble. A tibble with values longitude and latitude and other values

EPSG_WGS84

Character. A reference coordinate system. If TRUE, the values of latitude and longitude alredy use this coordinate system, if FALSE, the data set need to be transformed

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

plot_ncol

Numeric. A number of columns to show the maps

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").

Value

Plot with input data as colored map

Author(s)

Adeline M. Maciel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 

library(lucC)

lucC_starting_point()

# open a JSON file example
file_json = "./inst/extdata/patterns/example_TWDTW.json"

# open file JSON
input_tb_raw_json <- file_json %>%
  lucC_fromJSON()
input_tb_raw_json

# plot maps input data
lucC_plot_maps_input(input_tb_raw_json, EPSG_WGS84 = TRUE, 
custom_palette = TRUE, RGB_color = c("#FFB266", "#1b791f", 
"#929e6e", "#f5e7a1"))



## End(Not run)

ammaciel/lucC documentation built on May 30, 2019, 8:01 a.m.