View source: R/visstat_methods.R
| plot.visstat | R Documentation |
Replays captured plots or reports saved plot file paths from a
visstat object.
## S3 method for class 'visstat'
plot(x, which = NULL, ...)
x |
An object of class |
which |
Integer selecting a single plot to display (1, 2, ...).
If |
... |
Currently unused. Included for S3 method compatibility. |
When called without which, the method lists all available plots
(either as file paths or as indices of captured plots).
When called with which, the selected plot is displayed:
for file-based output the stored path is printed, for captured plots
the plot is replayed via replayPlot().
The object x, invisibly. Called for its side effect.
print.visstat,
summary.visstat, visstat
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.