plot.intensity: Plot scatterplot matrix of intensity vectors

View source: R/plot.intensity.R

plot.intensityR Documentation

Plot scatterplot matrix of intensity vectors

Description

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.

Usage

## S3 method for class 'intensity'
plot(x, ggplot = TRUE, print = TRUE, user.prompt = TRUE, ...)

Arguments

x

A vector or matrix of intensity values (if a matrix, each intensity vector should be one row of the matrix)

ggplot

Logical; if TRUE the scatterplot is a ggplot object; if FALSE it is a base plot object

print

Logical; if TRUE the scatterplot is printed

user.prompt

Logical; if TRUE the user will be prompted for choices when the number if intensity vectors is large

...

unused

Examples


data(garma)
INT     <- intensity(SERIES1)
plot(INT)

ben-oneill/ts.extend documentation built on May 4, 2023, 1:50 a.m.