Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Make strip plots for all files in a directory
files <- list.files(pattern="txt$")
i <- 0
values <- list()
for(file in files) {
i <- i+1
cc <- c(rep("NULL", 12), "numeric")
values[[i]] <- as.numeric(unlist(read.delim(file, colClasses = cc, skip=1, header = FALSE)))
names(values) <- files
stripchart(values, vertical=TRUE, method="jitter", pch=20, cex=0.8, las=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment