# plot.bayesDensity: Plot an object of class bayesDensity In bayesSurv: Bayesian Survival Regression with Flexible Error and Random Effects Distributions

## Description

This function plots an object created by `bayesDensity`.

## Usage

 ```1 2 3 4 5 6``` ```## S3 method for class 'bayesDensity' plot(x, k.cond, dim.plot = TRUE, over = TRUE, alegend = TRUE, standard = TRUE, center = FALSE, type = "l", bty = "n", xlab = expression(epsilon), ylab = expression(f(epsilon)), lty, xlim, ylim, xleg, yleg, main, ...) ```

## Arguments

 `x` an object of class `bayesDensity`. `k.cond` a numerical vector giving the numbers of mixture components for which the conditional densities are to be plotted. 0 states for the unconditional (overall) density, averaged over the mixture with all possible numbers of components. If NULL, all conditional and the unconditional density found in `x` will be plotted. `dim.plot` an indicator whether the dimension of the plot used in `par(mfrow)` should be computed automatically. If `dim.plot = FALSE` and `over = FALSE` the user has to determine himself using `par(mfrow)` how to put the plots on the page. `over` an indicator whether all densities should be drawn into one plot using different types of lines. If `FALSE` a separate plot for each density is created. `alegend` an indicator whether an automatic legend should be added to the plot. `standard` logical, do we want to plot standardized density? `center` logical, do we want to plot centered density?, set both `standard` and `center` to `FALSE` if you wish to plot unstandardized density. `xleg, yleg` position of the legend if `over = TRUE`. `type, bty, xlab, ylab, lty, xlim, ylim, main, ...` other arguments passed to the `plot.default` function.

## Author(s)

Arno<c5><a1>t Kom<c3><a1>rek arnost.komarek[AT]mff.cuni.cz

bayesSurv documentation built on May 31, 2017, 5:19 a.m.