Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
68 views

I'm trying to plot locations with colors. The locations are from different years which is why I want colors. Here are data and code. library(terra) library(tidyverse) library(tidyterra) library(tmap) ...
John Polo's user avatar
  • 846
-3 votes
2 answers
168 views

Given a tmap: library(tmap) plt <- tm_shape(World) + tm_polygons(fill = "HPI") How can I export the image directly into a docx file within R?
robertspierre's user avatar
1 vote
1 answer
223 views

In the following example, aligning the labels to the lines works in the default crs, but rotating the viewport caused inconsistent results. How could it be modified to work with the rotated viewport? ...
Nick Bear's user avatar
  • 137
2 votes
1 answer
177 views

I have two questions about the sample tmap code below. How would I make the tmap fill the entire page width? How to avoid generating the blank 1st page? I've tried grid.arrange and I was able to ...
Nick Bear's user avatar
  • 137
1 vote
0 answers
113 views

I am trying to make a map for a review paper with dots corresponding to the number of studies collected from each continent. I've created the basic map using the World map from tmap with tm_symbols(...
user30918203's user avatar
4 votes
1 answer
117 views

Consider the following example: library(tmap) mydf <- NLD_muni %>% filter(province %in% c("Drenthe", "Flevoland")) tm_shape(mydf) + tm_polygons( fill = c("...
robertspierre's user avatar
1 vote
0 answers
98 views

I am trying to create some interactive tmaps. I wanted to take advantage of the radio buttons in TMAP v4, to display different data inside the same .html-file. My first question is around using group....
SamBam's user avatar
  • 11
2 votes
1 answer
130 views

I'm creating an interactive map with tmap. I have layers from several different sources I want to combine in one map. I am able to add layers but after adding three, adding one more makes the third ...
Nick Bear's user avatar
  • 137
3 votes
1 answer
125 views

I am trying to use tmap with the MAP_COLOR argument which is supposed to plot the given shapefile with unique colors for adjacent polygons. However, it seems to be failing when I use it on two ...
BLP92's user avatar
  • 345
2 votes
2 answers
154 views

I would like to have a kind of standardized layout in {tamp} for making future maps: In short, I want to have the map on the left, the legend on the right, an optional short text and a potential ...
planktonic's user avatar
1 vote
2 answers
165 views

I couldn't remove the legend frame when adding a legend through tm_add_legend() and even setting the tm_options with legend.frame=FALSE didn't work either. I'm using the tmap v4: packageVersion('tmap')...
Jerry's user avatar
  • 11
0 votes
0 answers
68 views

I have 2 input tables which I wanna join over an ID column. My wished output are 2 datasets, one with the matches (inner join) and one with the non-matched data. My problem is, that I get only the ...
mlaus's user avatar
  • 35
2 votes
1 answer
109 views

When I use expression() to add text formatting such as italics and subscripts to a tmap legend, I'm getting huge amounts of unnecessary white space, and I have no idea why. Here's my reprex code; ...
Chris Shipway's user avatar
0 votes
1 answer
129 views

I want to develop a tmap::tmap_style() that includes several options, such as "yellow" for the fill color for missing values. I want to produce the following graphics: World <- tmap::...
petzi's user avatar
  • 1,645
0 votes
2 answers
252 views

I would like to use the tmap package to create an extent indicator inset map to show a zoomed-out view of the area. However, I'm having trouble controlling the frame and size of the inset map. In the ...
BEVAN's user avatar
  • 747

15 30 50 per page
1
2 3 4 5
35