powered by
Adds graphical elements to the current plot (on the two-dimensional simplex).
add.frame( equi = FALSE, lab1 = "w1", lab2 = "w2", lab3 = "w3", npoints = 60, col.polygon = "black", axes = TRUE )
logical. Is the simplex represented as an equilateral triangle (if TRUE) or a right triangle (if FALSE) ?
TRUE
FALSE
Character string: label for first component.
Character string: label for second component.
Character string: label for third component.
The number of grid nodes on the squared grid containing the desired triangle.
The background color outside the simplex.
logical. Should axes be added ?
Generic graphical tool for obtaining nice plots of the two-dimensional simplex
plot.new() add.frame() plot.new() mult.x=sqrt(2); mult.y=sqrt(3/2) plot.window( xlim=c(0,mult.x),ylim=c(0,mult.y), asp=1,bty ="n") add.frame(equi=TRUE)
Run the code above in your browser using DataLab