hollylkirk / ochre Goto Github PK
View Code? Open in Web Editor NEWAustralia-themed Colour Palettes
Home Page: https://docs.ropensci.org/ochRe
License: Other
Australia-themed Colour Palettes
Home Page: https://docs.ropensci.org/ochRe
License: Other
Hi, just wanted to let you know that your repository has been added to https://github.com/DiemenDesign/awesome-aussie , in case you wish it to be removed, or if you require the entry to be edited, or if you would like to add more repositories.
@hollylkirk et al ๐ according to our recently created package curation policy this repo should now be transferred to either one of your personal accounts, or the ropensci-archive organization.
If you don't answer within one month, I'll transfer the repository to ropensci-archive, after which you could still email me to transfer the repo to a personal account.
Thank you!
Here is code to obtain elevation data and produce a map using the ochre_pal function. It's very nice!
library(elevatr)
library(raster)
library(ochRe)
colpal <- ochre_pal()(150)
ex <- extent(110, 155, -45, -10)
## This line does the download or use load("oz_elev.rda")
##elev <- elevatr::get_elev_raster(raster(ex, crs = "+init=epsg:4326"), z = 4)
elev <- raster::crop(elev, ex)
elev[elev < 0] <- NA
topo <- list(x = xFromCol(elev), y = rev(yFromRow(elev)),
z = t(as.matrix(elev))[, nrow(elev):1])
par(mar = rep(0, 4), bg = "#444444")
image(topo, useRaster = TRUE, col = colpal,
axes = FALSE, xlab = "", ylab = "",
asp = cos(27.5 * pi/180))
#save(elev, file = "oz_elev.rda", compress = "xz")
See the attached image (from Wikipedia):
You can use the following:
states_pal <- set_names(c("#741128", "#88CFEC", "#DBEBE7", "#C35E00", "#FFD800", "#0645AD", "#FF0000"), c("QLD", "NSW", "VIC", "NT", "WA", "TAS", "SA"))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.