simplex.triangle: A simplex is a way to plot a specific type of multi-variate...

Description Usage Arguments Details

Description

Points are plotted in the interior of a shape with a number of vertices equal to the number of variables (i.e. a triangle for data points in three dimensions, a square for four dimensions, etc). The higher the value of a variable, the closer the point is to the vertex representing that variable. The color of the point is also determined by it's closeness to each vertex.

Usage

1
2
3
simplex.triangle(series, main = NULL, corner.labels = NULL, cex = NULL,
  show.ticks = FALSE, show.legend = FALSE, legend.pos = "topleft",
  plotwidth = 7, new.plot = TRUE)

Arguments

series

either a list or a list of lists (see details).

main

plot title.

corner.labels

labels for each of the vertices.

cex

point cex.

show.ticks

show tick marks on the sides of the triangle.

show.legend

whether to show a legend defining the colors used for each variable.

legend.pos

where to put the legend.

plotwidth

size of plot (in inches).

new.plot

logical whether to create a new plot or overplot on the existing device.

Details

If 'series' is a list, then each element is a Nx3 matrix, where each row is translated into a data point. The sum of each row in the data matrix must be 1. If 'series' is a list of lists, each element has a 'data' member, which is the matrix, and must also have pch and colramp elements. If 'show.legend' is TRUE, each list must also have a name element. Other optional elements are: highlight.idx and highlight.col, where highlight.idx can be an index or list of indices to highight with the specified color (this works best if the colramp is grayscale).


jdidion/fancyplots documentation built on May 18, 2019, 11:30 p.m.