Skip to content

earthtones

Derive a Color Palette from a Particular Location on Earth

v0.2.0 · Mar 31, 2025 · MIT + file LICENSE

Description

Downloads a satellite image via ESRI and maptiles (these are originally from a variety of aerial photography sources), translates the image into a perceptually uniform color space, runs one of a few different clustering algorithms on the colors in the image searching for a user-supplied number of colors, and returns the resulting color palette.

Downloads

301

Last 30 days

13419th

761

Last 90 days

3K

Last year

Trend: +23.4% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 11, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(earthtones)
  > 
  > test_check("earthtones")
  Saving _problems/test-earth-5.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 2 ]
  
  
...[truncated]...
ifelse(...)
   10.         ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   11.         │ └─base::is.factor(x)
   12.         └─base::basename(x)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 2 ]
  Error:
  ! Test failures.
  Execution halted

Dependency Network

Dependencies Reverse dependencies maptiles terra sf earthtones

Version History

new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.1 diff Mar 30, 2025
updated 0.1.1 ← 0.1.0 diff Jan 12, 2019
new 0.1.0 Aug 31, 2016