Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Nov 16, 2024
1 parent 5874384 commit 4271f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ map.pal <- function(name, n=50, ...) {
error("map.pal", "you cannot get more than 433 random colors")
}
s <- sample(grDevices::colors()[grep('gr(a|e)y', grDevices::colors(), invert = TRUE)], n)
rgb(t(col2rgb(s))/255)
rgb(t(grDevices::col2rgb(s))/255)

} else {
error("map.pal", paste(name, "is not a known palette"))
Expand Down

0 comments on commit 4271f4a

Please sign in to comment.