Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to not snug axes around map? #1080

Closed
AMBarbosa opened this issue Mar 27, 2023 · 1 comment
Closed

Option to not snug axes around map? #1080

AMBarbosa opened this issue Mar 27, 2023 · 1 comment

Comments

@AMBarbosa
Copy link
Contributor

[enhancement, only if easy to implement]

It is great that axes are now drawn snugly around the maps, but sometimes the user may prefer (for uniformity or for reproducing previous scripts) to have the option for a map to fill the entire plotting region as it used to do. Take e.g. the following script:

library(geodata)
wrld <- world(path = tempdir())
wrld <- merge(wrld, country_codes(), by.x = "GID_0", by.y = "ISO3")
par(mfrow = c(4, 2))
for (i in unique(wrld$continent)) {
  plot(subset(wrld, wrld$continent == i), main = i)
}

With previous versions of terra, we got all plots in the same size:

image

...whereas now we get the same plots in disparate sizes:

image

If it's not a hassle, would it be possible to reproduce older behaviour when this is desired? Cheers!

@rhijmans
Copy link
Member

rhijmans commented Apr 4, 2023

You can now achieve that with plot(x, clip=FALSE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants