Learn R Programming

⚠️There's a newer version (0.37.3) of this package.Take me there.

rayshader (version 0.35.7)

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.35.7

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

June 13th, 2023

Functions in rayshader (0.35.7)

drawkeyfunction_lines

drawkeyfunction lines
create_texture

Create Texture
detect_water

Detect water
convert_path_to_animation_coords

Calculate Animation Coordinates from Path
darken_color

Darken Color
convert_color

Convert Color
drawkeyfunction_points

drawkeyfunction points
fix_manifold_geometry

Fix Manifold Geometry
cross

Cross Product
gen_fractal_perlin

Generate Fractal Perlin Noise
flag_banner_obj

Flag Banner 3D Model
generate_cloud_layer

Calculate a single raymarched cloud layer
generate_base_shape

Generate Base Shape
fliplr

Flip Left-Right
generate_altitude_overlay

Generate Altitude Overlay
generate_contour_overlay

Generate Contour Overlay
generate_compass_overlay

Generate Compass Overlay
get_extent

Get Extent
generate_waterline_overlay

Generate Waterline Overlay
flipud

Flip Up-Down
generate_label_overlay

Generate Label Overlay
generate_line_overlay

Generate Line Overlay
height_shade

Calculate Terrain Color Map
flag_pole_obj

Flag Pole 3D Model
generate_soil_textures

Generate Soil Textures
flag_full_obj

Flag 3D Model
get_scene_depth

Get the scene depth from rgl to offset rayrender scenes
generate_surface

generate_surface
generate_point_overlay

Generate Point Overlay
make_base

make_base
make_base_triangulated

Make Base (for triangulated height maps)
generate_scalebar_overlay

Generate Scalebar Overlay
generate_rot_matrix

Generate Rotation Matrix
get_interpolated_points_path

Get Distance Along Bezier Curve
generate_polygon_overlay

Generate Polygon Overlay
get_ids_with_labels

Get IDs with Labels
make_water

make_water
monterey_counties_sf

California County Data Around Monterey Bay
monterey_roads_sf

Road Data Around Monterey Bay
local_to_world

Local To World
make_waterlines

make_waterlines
montereybay

Monterey Bay combined topographic and bathymetric elevation matrix.
lamb_shade

Calculate Lambert Shading Map
load_image

Load Image
%>%

re-export magrittr pipe operator
plot_3d

Plot 3D
plot_gg

Transform ggplot2 objects into 3D
render_camera

Render Camera
render_clouds

Render Clouds
render_contours

Render Contours
ray_shade

Calculate Raytraced Shadow Map
ray_merge_reorder

Reorder Lines
reduce_matrix_size

Reduce Matrix Size (deprecated)
render_compass

Render Compass Symbol
make_lines

make_lines
plot_map

Plot Map
lookat

Generate LookAt Matrix
raster_to_matrix

Raster to Matrix
make_shadow

make_shadow
raymarch_cloud_layer

Calculate a single raymarched cloud layer
render_obj

Render Obj
render_highquality

Render High Quality
render_multipolygonz

Render MULTIPOLYGON Z Geometry
render_floating_overlay

Render Floating overlay
render_path

Render Path
render_depth

Render Depth of Field
render_label

Render Label
render_movie

Render Movie
render_polygons

Render Polygons
render_points

Render Points
run_documentation

Run Documentation
save_3dprint

Save 3D Print
resize_matrix

Resize Matrix
rot_to_euler

Rotation Matrix to Euler Angle Transform
render_snapshot

Render Snapshot of 3D Visualization
render_snapshot_software

Render High Quality
render_tree

Render Tree
render_water

Render Water Layer
save_png

Save PNG
save_multipolygonz_to_obj

Save MULTIPOLYGON Z sf data to OBJ file
sphere_shade

Calculate Surface Color Map
tree_cone_center_obj

Flag 3D Model
save_obj

Save OBJ
translate_shape_string

translate_shape_string
write_stl

Write STL
tree_basic_center_obj

Flag 3D Model
washington_monument_multipolygonz

Washington Monument 3D Model as Multipolygon Z Data
tree_trunk_obj

Flag 3D Model
render_scalebar

Render Scale Bar
texture_shade

Calculate Texture Shading Map
render_resize_window

Resize the rgl Window
trim_padding

trim_padding
unit_vector

Unit Vector
transform_into_heightmap_coords

Get Position from Lat/Long and heightmap/extent
add_multi_padding

add_multi_padding
cloud_shade

Cloud Shade
add_water

Add Water
ambient_shade

Calculate Ambient Occlusion Map
add_padding

add_padding
constant_shade

Calculate Constant Color Map
add_overlay

Add Overlay
calculate_normal

Calculate Normal
build_from_w

Build From W
add_shadow

Add Shadow