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

panel() does not allow to set the range #1241

Closed
Nowosad opened this issue Jul 21, 2023 · 1 comment
Closed

panel() does not allow to set the range #1241

Nowosad opened this issue Jul 21, 2023 · 1 comment

Comments

@Nowosad
Copy link
Contributor

Nowosad commented Jul 21, 2023

library(terra)
#> terra 1.7.41
r <- rast(system.file("ex/elev.tif", package="terra"))
x <- c(r, r/2, r*2, r)
names(x) <- paste0("(", LETTERS[1:4], ")")

# works
panel(x)

# works
plot(x, range = c(300, 700))

# fails
panel(x, range = c(300, 700))
#> Error in .local(x, y, ...): formal argument "range" matched by multiple actual arguments
@rhijmans
Copy link
Member

Thank you. Fixed.

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