Tmap_arrange multiple rows, size/aspect ratio by row
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 907
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for this great package! I'm reviving this question from stackoverflow.
I was hoping with the new widths/lengths features it would be as simple as this, but no dice:
library(tmap)
library(spData)
a<-tm_shape(world) +
tm_polygons(col = "lifeExp")
tmap_arrange(a,a,a, nrow = 2, widths=c(.5,.5,1))
# Or maybe a nested approach
b<-tmap_arrange(a,a)
tmap_arrange(b,a,nrow=2)
Is this not possible with tmap_arrange?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue's R examples with tmap_arrange, including the nrow, widths, and nested-arrangement cases. Trace the existing tmap_arrange entry point and determine whether the requested multiple-row layout can support per-row sizing or aspect ratios. Done means the examples produce the intended two-row arrangement, with behavior covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100