You can pass any of the arguments used to specify the camera and the background/shadow colors in plot_3d(), and manipulate the displayed 3D plot using render_camera() and render_depth().Īll of these functions are designed to be used with the magrittr pipe %>%.
Software para plotter seiki mp4#
render_movie Creates and saves a mp4 file of the camera rotating around the 3D scene by either using a built-in orbit or by using one provided by the user.įinally, rayshader has a single function to generate 3D plots using ggplot2 objects:.render_snapshot Saves an image of the current 3D view to disk (if given a filename), or plots the 3D view to the current device (useful for including images in R Markdown files).You can customize the appearance of the map, as well as add a user-defined water level. plot_3d Creates a 3D map, given a texture and an elevation matrix.write_png Writes the current map to disk with a user-specified filename.The altitude can either be specified relative to the elevation at that point (the default), or absolutely.Īnd four functions to display and save your visualizations: render_label adds a text label to the x and y coordinate of the map at a specified altitude z (in units of the matrix).This either plots the image to the local device, or saves it to a file if given a filename.
The user can specify the focal distance, focal length, and f-stop of the camera, as well as aperture shape and bokeh intensity. render_depth generates a depth of field effect for the 3D map.Use this for high-quality maps with realistic light transport. render_highquality renders in the scene with a built-in pathtracer, powered by the rayrender package.This can either add to a map that does not already have a water layer, or replace an existing water layer on the map.Īlso included are two functions to add additional effects and information to your 3D visualizations: render_water adds a 3D tranparent water layer to 3D maps, after the rgl device has already been created.The user can input their own color, or pass the name of one of the pre-defined palettes from sphere_shade to get a matching hue. add_water uses the output of detect_water to add a water color to the map.detect_water uses a flood-fill algorithm to detect bodies of water of a user-specified minimum area.Rayshader also has three functions to detect and add water to maps:
Software para plotter seiki full#
Otherwise, the user can specify a single color that will be marked as completely transparent, or set the full overlay as partly transparent. If the map includes transparency, this is taken into account when overlaying the image.