# triax.fill: Triangle plot fill In plotrix: Various Plotting Functions

## Description

Fill a triangle plot with smaller triangles.

## Usage

 `1` ``` triax.fill(col) ```

## Arguments

 `col` List of colors (see Details).

## Details

In order for triax.fill to fill an existing plot that has been created by a call to triax.plot, the user must supply a list of fill colors. The first element of the list must begin with at least one value that can be interpreted as a color. The second element must begin with at least three such values, and so on, adding two values for each element of the list. Each list element will be displayed as a row of colored triangles starting at the top of the plot. The number of elements in the list determines the number of rows that will be displayed.

nil

## Author(s)

Jim Lemon

triax.plot,color.scale

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11``` ``` # the data will be something like response at different proportions fillval<-list(0,c(0,0.1,0),c(0,0.1,0.2,0.1,0), c(0,0.1,0.2,0.3,0.2,0.1,0),c(0,0.1,0.2,0.3,0.4,0.3,0.2,0.1,0), c(0,0.1,0.2,0.3,0.4,0.5,0.4,0.3,0.2,0.1,0), c(0,0,0.1,0.2,0.3,0.4,0.5,0.4,0.3,0.2,0.1,0,0), c(0,0,0,0.1,0.1,0.2,0.3,0.4,0.3,0.2,0.1,0.1,0,0,0)) # use some method of converting values to colors fillcol<-sapply(fillval,function(x) {x*10+1} ) oldpar<-triax.plot(main="Test of triax.fill function") triax.fill(fillcol) par(oldpar) ```

### Example output

```Warning messages:
1: In par(oldpar) : "xypos" is not a graphical parameter
2: In par(oldpar) : "oldpar" is not a graphical parameter
```

plotrix documentation built on Dec. 7, 2017, 5:06 p.m.