interactivePlot {fBasics} | R Documentation |
Plots with emphasis on interactive plots.
interactivePlot(x, choices = paste("Plot", 1:9), plotFUN = paste("plot.", 1:9, sep = ""), which = "all", ...)
choices |
a vector of character strings for the
choice menu. By Default |
plotFUN |
a vector of character strings naming the
plot functions. By Default |
which |
plot selection, which graph should be displayed? If |
x |
an object to be plotted. |
... |
additional arguments passed to the FUN or plot function. |
## Test Plot Function: testPlot = function(x, which = "all", ...) { # Plot Function and Addons: plot.1 <<- function(x, ...) plot(x, ...) plot.2 <<- function(x, ...) acf(x, ...) plot.3 <<- function(x, ...) hist(x, ...) plot.4 <<- function(x, ...) qqnorm(x, ...) # Plot: interactivePlot(x, choices = c("Series Plot", "ACF", "Histogram", "QQ Plot"), plotFUN = c("plot.1", "plot.2", "plot.3", "plot.4"), which = which, ...) # Return Value: invisible() } # Plot: par(mfrow = c(2, 2), cex = 0.7) testPlot(rnorm(500)) # Try: # par(mfrow = c(1,1)) # testPlot(rnorm(500), which = "ask")