Learn R Programming

plotrix (version 2.1-5)

triax.frame: Triangle plot frame

Description

Display a three axis frame with optional grid.

Usage

triax.frame(main="",at=seq(0.1,0.9,by=0.1),
 axis.labels=NULL,tick.labels=NULL,col.axis="black",cex.axis=1,cex.ticks=1,
 align.labels=TRUE,show.grid=FALSE,col.grid="gray",lty.grid=par("lty"))

Arguments

main
The title of the triangle plot. Defaults to nothing.
at
The tick positions on the three axes.
axis.labels
Labels for the three axes in the order bottom, right left. Defaults to the column names.
tick.labels
The tick labels for the axes. Defaults to argument at (proportions).
col.axis
Color of the triangular axes, ticks and labels.
cex.axis
Character expansion for axis labels.
cex.ticks
Character expansion for the tick labels.
align.labels
Logical - whether to align axis and tick labels with the axes.
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
par(xpd=TRUE)
 triax.frame(main="DEFAULT")
 par(xpd=FALSE)

Run the code above in your browser using DataLab