Learn R Programming

plotrix (version 2.0.3)

triax.frame: Triangle plot

Description

Display a three axis frame with optional grid.

Usage

triax.frame(main="",
 at=list(l=seq(0.1,0.9,by=0.1),r=seq(0.1,0.9,by=0.1),b=seq(0.1,0.9,by=0.1)),
 axis.labels=NULL,tick.labels=NULL, col.axis="black",
 show.grid=FALSE,col.grid="gray",lty.grid=par("lty"))

Arguments

main
The title of the triangle plot. Defaults to nothing.
at
A list with three components, "l", "r" and "b", giving the left, right and bottom tick positions on the three axes.
axis.labels
Labels for the three axes. Defaults to the column names.
tick.labels
Tick labels - a list with three components, "l", "r" and "b", giving the left, right and bottom tick labels. Defaults to argument at (proportions).
col.axis
Color of the triangular axes, ticks and labels.
show.grid
Whether to display grid lines at the ticks.
col.grid
Color of the grid lines. Defaults to gray.
lty.grid
Type of line for the grid.

Value

  • nil

Details

triax.frame displays a triangular plot area on which proportions or percentages may be displayed. An optional grid may also be displayed.

See Also

triax.points,triax.abline

Examples

Run this code
triax.frame(main="DEFAULT")

Run the code above in your browser using DataLab