rayshader: Create Maps and Visualize Data in 2D and 3D

Uses a combination of raytracing and multiple hill shading methods to produce 2D and 3D data visualizations and maps. Includes water detection and layering functions, programmable color palette generation, several built-in textures for hill shading, 2D and 3D plotting options, a built-in path tracer, 'Wavefront' OBJ file export, and the ability to save 3D visualizations to a 3D printable format.

Version: 0.41.2
Depends: R (≥ 4.1)
Imports: doParallel, foreach, Rcpp, progress, raster, scales, png, jpeg, rgl (≥ 1.3.16), grDevices, grid, utils, methods, terrainmeshr, rayimage (≥ 0.24.1), rayvertex (≥ 0.13.1), rayrender (≥ 0.40.0), magrittr
LinkingTo: Rcpp, progress, RcppArmadillo
Suggests: reshape2, viridis, av, magick, ggplot2 (≥ 4.0.0), sf, isoband, car (≥ 3.1-1), geosphere, gifski, ambient, terra, elevatr, gridExtra, testthat (≥ 3.0.0), osmdata, raybevel (≥ 0.2.1), ragg, skymodelr
Published: 2026-07-20
DOI: 10.32614/CRAN.package.rayshader
Author: Tyler Morgan-Wall ORCID iD [aut, cph, cre]
Maintainer: Tyler Morgan-Wall <tylermw at gmail.com>
BugReports: https://github.com/tylermorganwall/rayshader/issues
License: GPL-3
URL: https://www.rayshader.com, https://github.com/tylermorganwall/rayshader
NeedsCompilation: yes
Materials: NEWS
In views: Spatial
CRAN checks: rayshader results

Documentation:

Reference manual: rayshader.html , rayshader.pdf

Downloads:

Package source: rayshader_0.41.2.tar.gz
Windows binaries: r-devel: rayshader_0.37.3.zip, r-release: rayshader_0.37.3.zip, r-oldrel: rayshader_0.37.3.zip
macOS binaries: r-release (arm64): rayshader_0.37.3.tgz, r-oldrel (arm64): rayshader_0.41.2.tgz, r-release (x86_64): rayshader_0.37.3.tgz, r-oldrel (x86_64): rayshader_0.37.3.tgz
Old sources: rayshader archive

Reverse dependencies:

Reverse imports: hillshader
Reverse suggests: fitbitViz, ggseg3d, PoweREST, rayrender

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rayshader to link to this page.