This is a custom plot function that operates on objects of class intensity
(which is the output generated from the intensity
function). This plot function generates a scatterplot matrix of intensity vectors using either ggplot
or base
graphics.
The user must input either a single intensity vector x
or a matrix x
where each row is one intensity vector. The function
generates a scatterplot matrix showing each of the intensity barplots. The user may choose to print or assign the object, or both.
Since the function generates a scatterplot of intensity plots, there are certain limits in the output. If the user attempts to generate
the plot for a time-series matrix with more than 36 intensity vectors, the user will be prompted to continue. The prompts can be removed
in the arguments of the function.
# S3 method for intensity
plot(x, ggplot = TRUE, print = TRUE, user.prompt = TRUE, ...)
A vector or matrix of intensity values (if a matrix, each intensity vector should be one row of the matrix)
Logical; if TRUE
the scatterplot is a ggplot
object; if FALSE
it is a base
plot object
Logical; if TRUE
the scatterplot is printed
Logical; if TRUE
the user will be prompted for choices when the number if intensity vectors is large
unused
# NOT RUN {
data(garma)
INT <- intensity(SERIES1)
plot(INT)
# }
Run the code above in your browser using DataLab