# File-based output: plot() lists stored paths
anova_path <- visstat(
npk$block,
npk$yield,
graphicsoutput = "png",
plotDirectory = tempdir()
)
plot(anova_path)
# Interactive output: plot() lists available plots,
# plot(obj, which = n) replays a specific one
linreg <- visstat(trees$Height, trees$Girth)
plot(linreg)
plot(linreg, which = 2)
Run the code above in your browser using DataLab