Skip to content

Instantly share code, notes, and snippets.

Created February 4, 2014 15:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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