plot.wlts: Plots for rwlts package

Description Usage Arguments Value Examples

View source: R/plot.R

Description

A set of visualization methods for trajectories extracted in rwlts package.

Usage

1
2
3
4
5
## S3 method for class 'wlts'
plot(x, ..., type = "alluvial")

## S3 method for class 'alluvial'
plot(x, ..., show_count = FALSE)

Arguments

x

a tibble object from class wlts.

...

additional functions

type

a character with the type of plot. Nowadays, only the "alluvial" plot is supported. By default is "alluvial".

show_count

a logical parameter, if true, is added the number of points on each bar. The default value is FALSE.

Value

a gg object from ggplot2 package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
 wlts_bdc <- "https://brazildatacube.dpi.inpe.br/wlts/"

 wlts_tibble <- get_trajectory(
                     URL        = wlts_bdc,
                     latitude    = c(-12, -11),
                     longitude   = c(-54, -55),
                     collections = "mapbiomas_amazonia-v5",
                     start_date  = "2015-07-01",
                     end_date    = "2017-07-01",
                     config = httr::add_headers("x-api-key" = "BDC-KEY"))

 plot(wlts_tibble)

## End(Not run)

brazil-data-cube/rwlts documentation built on Oct. 11, 2021, 1:44 a.m.