plotRGB {SoPhy} | R Documentation

## Plotting RGB figures

### Description

The function plots an RGB array

### Usage

    plotRGB(picture, x=1:dp[1], y=if (reverse) dp[2]:1 else 1:dp[2],
             reverse=TRUE, cex.axis=1, ...)

### Arguments

`picture` | three dimensional array where the third dimension must have length 3 or 4; the forth component is ignored if there is any
`x` | x-coordinates; the length must match the length of the first dimension of `picture`
`y` | y-coordinates; the length must match the length of the first dimension of `picture`; see details
`reverse` | logical; see details
`cex.axis` | graphical parameter, see `par`
`...` | additional graphical parameters for `image`

### Details

`reverse=TRUE` is for the plot of soil profiles, where the numbering of the y-axis start at the top and is counted positively downwards.

`reverse=FALSE` The usual presentation of the vertical axis.

The functions checks whether `y` is in decreasing or increasing order, and plots the y axis accordingly.

### Value

NULL

### Author(s)

Martin Schlather, schlath@hsu-hh.de http://www.unibw-hamburg.de/WWEB/math/schlath/schlather.html

### See Also

`read.picture`, `write.picture`

### Examples

    fig <- read.picture(paste(system.file(package='SoPhy'),
                        'tracer', 'K06', sep="/"))
    plotRGB(fig)

[Package SoPhy version 1.0.28 Index]