Skip to content

Commit

Permalink
Alaska visualization (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesamos committed Nov 9, 2023
1 parent 5dff70a commit 2e002c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ geo_layer <- geo2 |>
get_geo_layer()
geo_layer$faiana21vs20 <- 100 * (geo_layer$V1389 - geo_layer$V0671) / geo_layer$V0671
plot(geo_layer[, "faiana21vs20"])
plot(sf::st_shift_longitude(geo_layer[, "faiana21vs20"]))
```

In `GeoPackage` format we can also easily perform queries with other tools such as *QGIS*.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ work folder.

``` r
library(geogenr)
#> Warning: package 'geogenr' was built under R version 4.3.2

dir <- system.file("extdata/acs_5yr", package = "geogenr")

Expand Down Expand Up @@ -219,7 +220,7 @@ geo_layer <- geo2 |>
get_geo_layer()

geo_layer$faiana21vs20 <- 100 * (geo_layer$V1389 - geo_layer$V0671) / geo_layer$V0671
plot(geo_layer[, "faiana21vs20"])
plot(sf::st_shift_longitude(geo_layer[, "faiana21vs20"]))
```

<img src="man/figures/README-unnamed-chunk-9-1.png" width="100%" />
Expand Down
Binary file modified man/figures/README-unnamed-chunk-9-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion vignettes/geogenr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ geo_layer <- geo2 |>
get_geo_layer()
geo_layer$faiana21vs20 <- 100 * (geo_layer$V1389 - geo_layer$V0671) / geo_layer$V0671
plot(geo_layer[, "faiana21vs20"])
plot(sf::st_shift_longitude(geo_layer[, "faiana21vs20"]))
```

Additionally, we can export any of these objects in `GeoPackage` format to use other query tools, such as *QGIS*.
Expand Down

0 comments on commit 2e002c2

Please sign in to comment.