EPSG:3035
[This article was first published on r.iresmi.net, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Day 19 of 30DayMapChallenge: « Projections » (previously).
EPSG:3035 is a Lambert azimuthal equal-area projection used for mapping Europe at medium scale, preserving area. It is quite used in European statistics for this property and is the base for a grid system.
We push this projection a little further by reprojecting the entire globe.
Data
library(sf)
library(ggplot2)
library(rnaturalearth)
library(glue)
world <- ne_countries() |>
st_transform("EPSG:3035")
Map
world |>
ggplot() +
geom_sf(color = "#abe338", fill = "#85b66f") +
labs(title = "Earth",
subtitle = st_crs(world)$Name,
caption = glue("data : Natural Earth
https://r.iresmi.net - {Sys.Date()}")) +
theme_minimal() +
theme(text = element_text(family = "Ubuntu", color = "#ffa07a"),
plot.background = element_rect(fill = "#373737", color = NA),
panel.background = element_blank(),
panel.grid = element_line(color = "#0ac1c1"),
axis.text = element_text(color = "#0ac1c1"),
plot.caption = element_text(size = 7, color = "grey40"))
To leave a comment for the author, please follow the link and comment on their blog: r.iresmi.net.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.