We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello again!
Quick question! Is it possible to use custom color gradients?
For example, is it possible to set the lowest value as "white" and highest value as "dodgerblue4"?
I saw the post about using hex colors but did not have luck...
The text was updated successfully, but these errors were encountered:
This is not particularly related to cartography, which uses whatever colors you give it. Anyway, I would probably use colorRampPalette().
cartography
colorRampPalette()
library(cartography) library(sf) #> Linking to GEOS 3.5.1, GDAL 2.2.3, PROJ 4.9.3 mtq <- st_read(system.file("gpkg/mtq.gpkg", package="cartography"), quiet = T) cols <- colorRampPalette(colors = c("white", "dodgerblue4"))(6) choroLayer(x = mtq, var = "MED", nclass=6, method = "quantile", col = cols)
Sorry, something went wrong.
No branches or pull requests
Hello again!
Quick question! Is it possible to use custom color gradients?
For example, is it possible to set the lowest value as "white" and highest value as "dodgerblue4"?
I saw the post about using hex colors but did not have luck...
The text was updated successfully, but these errors were encountered: