Learn R Programming

molaR (version 6.0)

DNE3d: Plot results of a DNE analysis of a surface

Description

A molaR surface plotting function.

Usage

DNE3d(
  DNE_File,
  setMax = 0,
  logColors = TRUE,
  signColor = TRUE,
  concaveMute = FALSE,
  cuttingFocus = FALSE,
  main = "",
  cex = 1,
  legend = TRUE,
  widget_size_px = 768,
  scene_zoom = 1.5,
  leftOffset = 0,
  fieldofview = 0,
  title_font_size_px = 30,
  legend_magnify = 1,
  fileName = NA,
  binary = FALSE
)

Arguments

DNE_File

An object that stores the output of the DNE() function

setMax

User-defined upper range for plotting color scheme, see Details

logColors

Logical that log transforms the color scheme

signColor

Logical indicating whether or not to plot by concavity vs convexity. Plotting by curve orientation is the default.

concaveMute

Logical indicating whether or not to mute the concave portion of the Dirichlet normal density coloration. Default is FALSE.

cuttingFocus

Logical indicating whether or not to mute the concave portion and faces with Dirichlet normal density below the top quartile. Default is FALSE.

main

String indicating plot title

cex

Numeric setting the relative size of the legend

legend

Logical indicating whether or not a legend should be displayed

widget_size_px

Sets the plot size in pixels. Default is 768 and always square

scene_zoom

Set the initial viewing window of the 3d scene. Default is 1.5

leftOffset

Numeric between -1 and 1 setting the amount of offset for the plotted surface to the left. Larger values push surface farther to right.

fieldofview

Passes an argument to par3d() changing the field of view (in degrees) of the resulting 3D plot

title_font_size_px

Sets the title font size in pixels. Default is 30

legend_magnify

Default set to 1, changes the scaling on legend.

fileName

String indicating a name to save the plotted surface to as a *.ply file; default of 'NA' will not save a file

binary

Logical indicating whether or not the saved surface plot should be binary, passed to vcgPlyWrite()

Examples

Run this code
if (FALSE) {
DNE_output <- DNE(Tooth)
DNE3d(DNE_output)
}

Run the code above in your browser using DataLab