Learn R Programming

rayshader (version 0.37.3)

Create Maps and Visualize Data in 2D and 3D

Description

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.

Copy Link

Version

Install

install.packages('rayshader')

Monthly Downloads

2,697

Version

0.37.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

February 21st, 2024

Functions in rayshader (0.37.3)

add_shadow

Add Shadow
drawkeyfunction_lines

drawkeyfunction lines
create_texture

Create Texture
detect_water

Detect water
convert_rgl_to_raymesh

Convert rayshader RGL scene to ray_mesh object
convert_path_to_animation_coords

Calculate Animation Coordinates from Path
darken_color

Darken Color
drawkeyfunction_points

drawkeyfunction points
add_padding

add_padding
convert_color

Convert Color
cross

Cross Product
flag_pole_obj

Flag Pole 3D Model
generate_altitude_overlay

Generate Altitude Overlay
flag_banner_obj

Flag Banner 3D Model
generate_compass_overlay

Generate Compass Overlay
fix_manifold_geometry

Fix Manifold Geometry
generate_cloud_layer

Calculate a single raymarched cloud layer
fliplr

Flip Left-Right
gen_fractal_perlin

Generate Fractal Perlin Noise
flipud

Flip Up-Down
flag_full_obj

Flag 3D Model
generate_polygon_overlay

Generate Polygon Overlay
generate_base_shape

Generate Base Shape
generate_scalebar_overlay

Generate Scalebar Overlay
generate_label_overlay

Generate Label Overlay
generate_rot_matrix

Generate Rotation Matrix
generate_contour_overlay

Generate Contour Overlay
generate_surface

generate_surface
generate_soil_textures

Generate Soil Textures
get_scene_depth

Get the scene depth from rgl to offset rayrender scenes
generate_waterline_overlay

Generate Waterline Overlay
height_shade

Calculate Terrain Color Map
generate_point_overlay

Generate Point Overlay
generate_line_overlay

Generate Line Overlay
local_to_world

Local To World
%>%

re-export magrittr pipe operator
make_waterlines

make_waterlines
get_extent

Get Extent
get_interpolated_points_path

Get Distance Along Bezier Curve
make_water

make_water
lookat

Generate LookAt Matrix
lamb_shade

Calculate Lambert Shading Map
get_ids_with_labels

Get IDs with Labels
get_polygon_data_value

Get Data Value from spatial object
make_base_triangulated

Make Base (for triangulated height maps)
montereybay

Monterey Bay combined topographic and bathymetric elevation matrix.
monterey_roads_sf

Road Data Around Monterey Bay
make_base

make_base
ray_shade

Calculate Raytraced Shadow Map
monterey_counties_sf

California County Data Around Monterey Bay
ray_merge_reorder

Reorder Lines
make_lines

make_lines
load_image

Load Image
make_shadow

make_shadow
raymarch_cloud_layer

Calculate a single raymarched cloud layer
plot_3d

Plot 3D
reduce_matrix_size

Reduce Matrix Size (deprecated)
plot_gg

Transform ggplot2 objects into 3D
render_beveled_polygons

Render Beveled Polygons
render_buildings

Render Buildings
raster_to_matrix

Raster to Matrix
plot_map

Plot Map
render_camera

Render Camera
render_depth

Render Depth of Field
render_compass

Render Compass Symbol
render_movie

Render Movie
render_contours

Render Contours
render_clouds

Render Clouds
render_multipolygonz

Render MULTIPOLYGON Z Geometry
render_floating_overlay

Render Floating overlay
render_label

Render Label
render_highquality

Render High Quality
render_scalebar

Render Scale Bar
render_raymesh

Render Raymesh
render_obj

Render Obj
render_snapshot_software

Render Software Snapshot
render_snapshot

Render Snapshot of 3D Visualization
render_points

Render Points
render_resize_window

Resize the rgl Window
render_polygons

Render Polygons
render_path

Render Path
render_tree

Render Tree
render_water

Render Water Layer
resize_matrix

Resize Matrix
rot_to_euler

Rotation Matrix to Euler Angle Transform
save_obj

Save OBJ
texture_shade

Calculate Texture Shading Map
run_documentation

Run Documentation
sphere_shade

Calculate Surface Color Map
save_multipolygonz_to_obj

Save MULTIPOLYGON Z sf data to OBJ file
save_3dprint

Save 3D Print
save_png

Save PNG
transform_points_into_raycoords

Transform Points into Raycoords
tree_trunk_obj

Flag 3D Model
trim_padding

trim_padding
washington_monument_multipolygonz

Washington Monument 3D Model as Multipolygon Z Data
unit_vector

Unit Vector
transform_polygon_custom_crs

Transform Polygon into Raycoords
translate_shape_string

translate_shape_string
write_stl

Write STL
transform_polygon_into_raycoords

Transform Polygon into Raycoords
transform_into_heightmap_coords

Get Position from Lat/Long and heightmap/extent
tree_cone_center_obj

Flag 3D Model
transform_points_custom_crs

Transform Polygon into Raycoords
tree_basic_center_obj

Flag 3D Model
add_multi_padding

add_multi_padding
add_overlay

Add Overlay
calculate_normal

Calculate Normal
ambient_shade

Calculate Ambient Occlusion Map
constant_shade

Calculate Constant Color Map
add_water

Add Water
cloud_shade

Cloud Shade
build_from_w

Build From W