plot.grpoutputs {micompr} | R Documentation |
Plot grouped outputs
Description
Plot objects of class grpoutputs
.
Usage
## S3 method for class 'grpoutputs'
plot(x, ...)
Arguments
x |
Object of class |
... |
Extra options passed to |
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)
[Package micompr version 1.1.4 Index]