The following code displays multiple Naïve Bayesian plots. However, you only see them after pressing enter in the console. If you wanted to view the plot in a shiny dashboard, you will need to click 'Enter' on the keyboard. Also, it will only display one plot, not all of them.
library(klaR)
data(iris)
mN <- NaiveBayes(Species ~ ., data = iris)
plot(mN)
Is there a way for shiny to automatically display all plots on the dashboard without the need to press 'Enter' on the console?