Learn R Programming

crimelinkage (version 0.0.4)

plot.naiveBayes: 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

"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

Value

plots of Bayes factor from a naive Bayes model

Details

Plots (component) bayes factors from naiveBayes()

See Also

plotBF, naiveBayes, predict.naiveBayes

Examples

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

Run the code above in your browser using DataLab