Learn R Programming

micompr (version 1.1.4)

plot.grpoutputs: Plot grouped outputs

Description

Plot objects of class grpoutputs.

Usage

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

Value

None.

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.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab