rasterly_build.Rd
Produce a rasterly object and return the raster information required to produce an image
rasterly_build(rastObj)
rastObj | A rasterly object. It should be a list of environments composed of a |
---|
A rasterly object will never be produced until rasterly_build()
is called.
rasterly, rasterly_points, [.rasterly, [<-.rasterly
r <- data.frame(x = rnorm(1e5), y = rnorm(1e5)) %>% rasterly(mapping = aes(x = x, y = y)) %>% rasterly_points(color = fire_map) str(r)#> List of 2 #> $ rasterly_env :<environment: 0x0000000012eb0528> #> $ rasterlyPoints1:<environment: 0x0000000012db0290> #> - attr(*, "class")= chr "rasterly"#> List of 10 #> $ agg :List of 1 #> ..$ rasterlyPoints1:List of 1 #> .. ..$ : num [1:600, 1:600] 0 0 0 0 0 0 0 0 0 0 ... #> $ image : 'raster' chr [1:600, 1:600] "white" "white" "white" "white" ... #> $ lims :List of 2 #> ..$ xlims:List of 1 #> .. ..$ : num [1:2] -4.47 4.51 #> ..$ ylims:List of 1 #> .. ..$ : num [1:2] -4.42 4.17 #> $ x_range : num [1:2] -4.47 4.51 #> $ y_range : num [1:2] -4.42 4.17 #> $ plot_height : num 600 #> $ plot_width : num 600 #> $ variable_names:List of 1 #> ..$ rasterlyPoints1: Named chr [1:2] "x" "y" #> .. ..- attr(*, "names")= chr [1:2] "x" "y" #> $ background : chr "white" #> $ colors :List of 1 #> ..$ : chr [1:256] "#000000" "#060000" "#0d0000" "#120000" ... #> - attr(*, "class")= chr [1:2] "rasterlyBuild" "rasterly"