January 27, 2020 by Teamrat Ghezzeheie
Code snippet for new R script
# sets the working directory to the folder where the code is saved.
setwd(dirname(parent.frame(2)$ofile))
# Reset all variables
rm(list=ls(all=FALSE))
# colors
library(RColorBrewer)
dark = brewer.pal(8,"Dark2")
set1 = c(1,brewer.pal(8,"Set1"))
paired = brewer.pal(12,"Paired")
pas2 = brewer.pal(8,"Pastel2")