plot.grpoutputs: Plot grouped outputs

View source: R/grpoutputs.R

plot.grpoutputsR Documentation

Plot grouped outputs

Description

Plot objects of class grpoutputs.

Usage

## S3 method for class 'grpoutputs'
plot(x, ...)

Arguments

x

Object of class grpoutputs.

...

Extra options passed to plot.default.

Details

Each output is plotted individually, and observations are plotted on top of each other. Observations from different groups are plotted with different colors (which can be controlled through the col parameter given in ...).

This function can be very slow for a large number of observations.

Value

None.

Examples

# Determine paths for the data folder containing outputs of different
# lengths
dir_na <- system.file("extdata", "testdata", "NA", package = "micompr")

# Sets of files A and B have 3 files each
filesA <- glob2rx("stats400v1*n20A.tsv")
filesB <- glob2rx("stats400v1*n20B.tsv")

# Instantiate grpoutputs object
go <-
 grpoutputs(7, dir_na, c(filesA, filesB), lvls = c("A", "B"), concat = TRUE)

# Plot grpoutputs object
plot(go)


micompr documentation built on Aug. 20, 2023, 1:07 a.m.