Learn R Programming

molaR (version 4.2)

Slope3d: Plot results of a Slope analysis of a surface

Description

plotting function

Usage

Slope3d(Slope_File, colors = c("red", "orangered", "orange", "yellow", "yellowgreen", "green", "cornflowerblue", "blue"), maskNegatives = T, leftOffset = 1, fieldofview = 0, legend = T)

Arguments

Slope_File
An object that stores the output of the Slope function
colors
A string of colors to build the color gradient
maskNegatives
A logical indicating whether to mask the negative slopes or to reflect them into positive slopes
leftOffset
numeric value between -1 and 1 setting the degree of offset for the plotted surface to the left. Larger values set further to right.
fieldofview
Passes an argument to par3d changing the field of view in degrees of the resulting rgl
legend
Logical indicating whether or not a legend shold be displayed

Details

This function creates a heat map on the mesh surface corresponding to the slope of each face calculated by the Slope function. Colors are customizable