plot.naiveBayes: Plots for Naive Bayes Model

Description Usage Arguments Details Value See Also Examples

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

1
2
3
4
## 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

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

Example output



crimelinkage documentation built on May 2, 2019, 1:36 a.m.