plot.naiveBayes {crimelinkage}R Documentation

Plots for Naive Bayes Model

Description

This function attempts to plot all of the component plots in one window by using the mfrow argument of par. If more control is desired then use plotBF to plot individual Bayes factors.

Usage

## S3 method for class 'naiveBayes'
plot(x, vars, log.scale = TRUE, show.legend = 1,
  cols = c(color("darkred", alpha = 0.75), color("darkblue", alpha = 0.75)),
  ...)

Arguments

x

a naiveBayes object

vars

name or index of naive Bayes components to plot. Will plot all if blank.

log.scale

(logical)

show.legend

either a value or values indicating which plot to show the legend, or TRUE/FALSE to show or not show the legend on all plots.

cols

Colors for plotting. First element is for linkage, second unlinked

...

arguemnts passed into plotBF

Details

Plots (component) bayes factors from naiveBayes()

Value

plots of Bayes factor from a naive Bayes model

See Also

plotBF, naiveBayes, predict.naiveBayes

Examples

# See vignette: "Statistical Methods for Crime Series Linkage" for usage.

[Package crimelinkage version 0.0.4 Index]