plot.NaiveBayes(x, vars, n = 1000, legendplot = TRUE, lty = 1:length(x$apriori), col = rainbow(length(x$apriori)), ylab = "Density", main = "Naive Bayes Plot", ...)
class
NaiveBayes
missing
legend
lty
color
mosaicplot is called.
data(iris) mN<-NaiveBayes(Species~.,data=iris) plot(mN) mK<-NaiveBayes(Species~.,data=iris,usekernel=TRUE) plot(mK)
Run the code above in your browser using DataLab