plot.grpoutputs | R Documentation |
Plot objects of class grpoutputs
.
## S3 method for class 'grpoutputs'
plot(x, ...)
x |
Object of class |
... |
Extra options passed to |
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.
None.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.