plotDensity {cNORM} | R Documentation

## Plot the density function per group by raw score

### Description

The function plots the density curves based on the regression model against the actual percentiles from the raw data. As in 'plotNormCurves', please check for inconsistent curves, especially curves showing implausible shapes as f. e. violations of biuniqueness.

### Usage

    plotDensity(
      model,
      minRaw = NULL,
      maxRaw = NULL,
      minNorm = NULL,
      maxNorm = NULL,
      group = NULL,
      covariate = NULL
    )

### Arguments

`model` | The model from the bestModel function or a cnorm object
`minRaw` | Lower bound of the raw score
`maxRaw` | Upper bound of the raw score
`minNorm` | Lower bound of the norm score
`maxNorm` | Upper bound of the norm score
`group` | Column of groups to plot
`covariate` | In case, a covariate has been used, please specify the degree of the covariate / the specific value here.

### See Also

plotNormCurves, plotPercentiles

Other plot: `plot.cnorm()`, `plotDerivative()`, `plotNormCurves()`, `plotNorm()`, `plotPercentileSeries()`, `plotPercentiles()`, `plotRaw()`, `plotSubset()`

### Examples

    # Load example data set, compute model and plot results for age values 2, 4 and 6
    result <- cnorm(raw = elfe$raw, group = elfe$group)
    plotDensity(result, group = c (2, 4, 6))

[Package cNORM version 2.0.3 Index]