This is an R package designed for producing beautiful and interactive 2D and 3D visualizations — especially maps and terrain renderings — using elevation/gridded data and ray-tracing / hill-shading methods. At its core, rayshader takes a matrix of elevations and applies shading, texture, ambient occlusion, overlays, and light modeling (ray shade, lambertian shading, etc.) to produce realistic relief maps. Users can rotate, zoom, and animate the scenes or script camera trajectories programmatically. It supports outputting high-quality renders via path tracing (using a companion package) and also offers depth-of-field (“cinematic blur”) effects to bring visual focus into scenes. It allows layering relational data (roads, points, polygons) on top of the shaded terrain, so you can combine spatial data overlays with the 3D model. The package can export models to 3D formats like STL or OBJ for 3D printing or external rendering.

Features

  • Ray tracing, hill shade, ambient occlusion and combined shading of elevation matrices
  • 2D and 3D rendering with camera control, animations, zoom, and scripting
  • Support for depth-of-field / cinematic focus effects
  • Ability to overlay spatial data (lines, points, polygons) on terrain
  • Export to 3D formats (STL, OBJ) for printing or external use
  • Accepts ggplot2 objects and transforms them into 3D visualizations

Project Samples

Project Activity

See All Activity >

Follow rayshader

rayshader Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of rayshader!

Additional Project Details

Operating Systems

Windows

Programming Language

R

Related Categories

R Data Visualization Software

Registered

2025-10-01