Questions tagged [ggspatial]

An R package to plot the spatial data and create maps, which is specifically designed to work with data in the Spatial* objects.

20 questions
0
votes
0 answers

Error in sp::CRS and ggspatial::annotation_map_tile respectively

with reprex::reprex() it works perfect (see below), but in Rterm and RStudio console I get errors ... do you have an idea how to solve this? There are some similar questions but I've found no solution so far Error in sp::CRS(SRS_string =…
ckluss
  • 1,477
  • 4
  • 21
  • 33
0
votes
1 answer

Plotting map in R but it is showing nothing

My code: library("ggplot2") library("sf") library("rnaturalearth") library("rnaturalearthdata") library("ggspatial") chesapeake_bay <- ne_countries(scale = "medium", returnclass = "sf") plot<-ggplot(data = chesapeake_bay)…
Kami
  • 1
  • 4
0
votes
1 answer

Hide area outside of area of interest in ggspatial

I made a map using ggplot2, ggspatial and sf. I used ggspatial so that I could download open source base maps without relying on Google and needing an API key. The ggspatial annotation_map_tile call downloads a set of tiles that provide the base…
hmhensen
  • 2,974
  • 3
  • 22
  • 43
0
votes
1 answer

How to draw a line on the 66th parallel north in ggplot when using a polar (epsg:3995) projection and ggspatial

I am trying to draw a blue circle on the 66th parallel north. on a map I am making. I usually fortify() a SpatialPolygonsDataFrame and then use the combination geom_polygon(), coord_map("ortho" , ylim = c(50, 90)) and geom_hline() to achieve…
L Smeets
  • 888
  • 4
  • 17
0
votes
2 answers

Map Arctic/subarctic regions in ggplot2 with Lambert Conformal Conic projection in R

I am trying to map lat/lon locations in the Arctic/subarctic region using ggplot2, and colour them by type. Here are the packages I'm using: library(ggplot2) library(rgdal) library(ggmap) library(sp) library(dplyr) library(ggspatial) #To use…
cgxytf
  • 421
  • 4
  • 11
1
2