plot.bayesDensity {bayesSurv} | R Documentation

## Plot an object of class bayesDensity

### Description

This function plots an object created by `bayesDensity`.

### Usage

    ## 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)

Arnost Komarek arnost.komarek@med.kuleuven.be

[Package bayesSurv version 0.4 Index]