anxietyhangover / rayshader

R Package for Raytracing Elevation Matrices to Produce Global Illumination Relief Maps

Home Page:http://www.tylermw.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rayshader

Overview

rayshader is an open source package for producing global shadow maps of elevation matrices.

Installation

# To install the latest version from Github:
# install.packages("devtools")
devtools::install_github("tylermorganwall/rayshader")

Functions

  • rayshade uses user specified light directions to calculate a global shadow map for an elevation matrix.

Usage

library(rayshader)
volcanoshadow = rayshade(heightmap = volcano, 
  anglebreaks = seq(-90,90,1)*pi/180, 
  sunangle = 45*pi/180, 
  maxsearch = 100,
  zscale = 1)
image(volcanoshadow,col=colorRampPalette(c("black","white"))(100))

About

R Package for Raytracing Elevation Matrices to Produce Global Illumination Relief Maps

http://www.tylermw.com


Languages

Language:C++ 76.1%Language:R 23.9%