Learn R Programming

plotrix (version 2.1-5)

triax.abline: Lines for triangle plot

Description

Display lines on a triangle plot.

Usage

triax.abline(b=NULL,r=NULL,l=NULL,col=par("col"),lty=par("lty"))

Arguments

b
Lines relating to the bottom axis.
r
Lines relating to the right axis.
l
Lines relating to the left axis.
col
Color(s) of the lines.
lty
Type(s) of the lines.

Value

  • A list of the x,y positions plotted.

Details

triax.abline displays one or more lines on a triangle plot. Lines are oriented in the conventional way, horizontal for the left axis, slanting up to the right for the right axis and up to the left for the bottom axis.

See Also

triax.plot

Examples

Run this code
triax.plot(data.frame(bottom=0.4,right=0.3,left=0.3),main="Triax ablines")
 triax.abline(l=0.3,col="red")
 triax.abline(r=0.3,col="green")
 triax.abline(b=0.4,col="blue")

Run the code above in your browser using DataLab