Created
August 27, 2019 09:56
-
-
Save djnavarro/c7ff29834c47724c1fc2bd2a932f1a9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
ozmap <- function(proj4string) { | |
dat <- sf::st_transform(ozmaps::abs_ced, proj4string) | |
ggplot(dat) + | |
geom_sf() + | |
coord_sf() + | |
theme_void() | |
} | |
animation::saveGIF({ | |
for(lon in 0:100) { | |
cat(".") | |
str <- paste0("+proj=aeqd +datum=WGS84 +lat_0=0 +lon_0=", lon) | |
p <- ozmap(str) | |
plot(p) | |
}}, | |
"~/Desktop/crsanim.gif", | |
interval = .1 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
ozmap <- function(proj4string) { | |
dat <- sf::st_transform(ozmaps::abs_ced, proj4string) | |
ggplot(dat) + | |
geom_sf() + | |
coord_sf() + | |
theme_void() | |
} | |
animation::saveGIF({ | |
for(lon in 0:100) { | |
cat(".") | |
str <- paste0("+proj=aeqd +datum=WGS84 +lat_0=0 +lon_0=", lon) | |
p <- ozmap(str) | |
plot(p) | |
}}, | |
"~/Desktop/crsanim.gif", | |
interval = .1 | |
) |
Author
djnavarro
commented
Aug 27, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment