plotHistory {BRugs} | R Documentation |

## Trace of a scalar variable

### Description

This function returns and plots a complete trace for a scalar variable.

### Usage

```
plotHistory(node, plot = TRUE,
colour = c("red", "blue", "green", "yellow", "black"),
main = NULL, xlab = "iteration", ylab = "", ...)
```

### Arguments

`node` |
Character, name of a scalar variable in the model. |

`plot` |
Logical, whether to plot the trace or only return the values.
If |

`colour` |
Colours used to represent different chains. |

`main` , `xlab` , `ylab` |
graphical parameters, see |

`...` |
Further graphical parameters as in |

### Details

Acts on a scalar variable. See the wrapper function `samplesHistory`

for more details.

### Value

A matrix containing samples of `node`

, each row corresponds to one chain.

### See Also

`samplesHistory`

, `BRugs`

, `help.WinBUGS`

[Package

*BRugs*version 0.9-2.1 Index]