rts_map_raster: Map representation of Geographical Time Series (on a grid)

Description Usage Arguments Value

View source: R/rts_map_raster.R

Description

This function build an dynamic map, which represents the geographical time series on a grid

Usage

1
2
3
4
5
rts_map_raster(TS, positions.TS, weights.TS = NULL, RTS = NULL,
  positions.RTS = NULL, type = c("2D", "3D", "2D+3D", "2D-dynamic",
  "3D-dynamic"), k = 1, fpss = 5, windowsize = c(700, 700),
  save.plot = TRUE, file.name = "plot", nx.grid = 50, ny.grid = 50,
  type.grid = c("square", "convex"), ...)

Arguments

TS

is a object of class "ts" (time series), with ncol()>2

positions.TS

is a data frame that containing longitude (lon) and latitude (lat) asociated to time series in TS.

weights.TS

is a data frame that containing weights (of influence) of time series in TS.

positions.RTS

is a data frame that containing values of longitude (lon) and latitude (lat) of each time serie to be reconstructed. If positions.RTS=NULL, then positions.RTS is calculated as a grid of points into a square that contains all points of positions.TS.

type

is the type of plot to be shown, available options are: "2D","3D","2D+3D", "2D-dynamic","3D-dynamic"

k

Represent the number of time serie (column of TS). Is used only if type parameter is set as one of following options: "2D","3D" or "2D+3D"

fpss

is the number of frames per second. Is only used for types: "2D-dynamic" or "3D-dynamic"

windowsize

is a vector that contain width and height

save.plot

set as TRUE for save the plot

file.name

is a character for name of saved plot

nx.grid

is a interger that represents the number of points of longitude log(new positions) of the grid.

ny.grid

is a interger that represents the number of points of latitude lat(new positions) of the grid.

type.grid

Typo of grid to build, available options are: "convex","square"

...

Arguments passed to geoRts, or plot_gg function from rayshader package

Value

returns a object of class "leaflet", that contain a animated map with points that represents the time series in it's geographical positions


InstitutoInvestigacionesEconomicasPUCE/geortsBeta documentation built on June 17, 2020, 7:06 a.m.