DNEbar {molaR}R Documentation

Plot advanced results of a DNE surface analysis

Description

a molaR plotting function

Usage

DNEbar(
  DNE_File,
  main = "",
  convexCol = "hotpink",
  concaveCol = "deepskyblue",
  type = "both",
  legendPos = "topright",
  legendInset = 0,
  las = 1,
  names.arg = "",
  cex.names = 1
)

Arguments

DNE_File

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

main

User's title for plot.

convexCol

Color for the convex DNE total. Default='hotpink'

concaveCol

Color for the concave DNE total. Default='deepskyblue'

type

string to determine what parameters to plot. Default=both and both concave and convex DNE totals will be plotted in stacked bar plot. See details

legendPos

string to determine location of the legend. Default='topright' see details.

legendInset

numeric value determining how far to inset the legend from plot boarder. Default=0

las

logical indicating orientation of the x-axis labels for each bar plot. Enter either 1 or 2.

names.arg

concatenated string of surface names for labels. If none supplied function will pull names from the object itself.

cex.names

Font size for the bar labels. Default is 1.

Details

This function creates a stacked barplot of DNE values. It colors them according to curve orientation, which is defined by the kappa parameter in DNE() function. If multiple DNE objects are grouped together the barplot will return a set. When employed on a single DNE object this will return a single stacked bar.

The argument type accepts either 'Concave' or 'Convex' to plot only concave or convex DNE totals respectively. Default=NA and results in both totals being plotted in stacked barplot.

The argument legendPos is a string that determines the position of the legend. Default='topright' but will accept any of the following keywords: 'bottomright', 'bottom', 'bottomleft', 'left', 'topleft', 'top', 'topright', 'right', or 'center'.

Examples

DNEs <- list()
DNEs$Tooth <- DNE(Tooth)
DNEs$Hills <- DNE(Hills)
DNEbar(DNEs)

[Package molaR version 5.3 Index]