Get the history of a spatial object.

getHistory(x, ...)

# S4 method for ANY
getHistory(x)

# S4 method for geom
getHistory(x)

# S4 method for Raster
getHistory(x)

Arguments

x

the object from which to derive the history.

...

other arguments.

Value

A list of the events that lead to x.

See also

Examples

library(tibble)

tibble(x = c(40, 70, 70, 50),
       y = c(40, 40, 60, 70)) %>%
  gs_polygon() %>%
  gt_reflect(angle = 45) %>%
  getHistory()
#> [[1]]
#> [1] "object was created as 'polygon' geom."
#> 
#> [[2]]
#> [1] "geom was reflected."
#> 

getHistory(gtGeoms$line)
#> [[1]]
#> [1] "the object was loaded from memory"
#> 

gc_raster(gtGeoms$grid$categorical) %>%
  getHistory()
#> [[1]]
#> [1] "the object was loaded from memory"
#> 
#> [[2]]
#> [1] "raster 'categorical_grid_geom' was transformed from an object of class geom."
#> 

getWindow(x = matrix(0, 3, 5))
#> # A tibble: 2 × 2
#>       x     y
#>   <dbl> <dbl>
#> 1     0     0
#> 2     5     3