##### Markdown setup ##### --------------------- ##### Some variables used in plots ##### -------------------------------------- library("colorspace") BTY <- "o" PCH <- 23 #COL <- "red3" #BGC <- "orange" COL <- "orange" BGC <- "palegoldenrod" BCOL <- rainbow_hcl(1, start=100) ## boxplots HCOL <- rainbow_hcl(1, start=60) ## histograms COL2 <- "orange" BGC2 <- "beige" PCH3 <- 21 COL3 <- "darkblue" BGC3 <- "skyblue" ##### Functions to create PDF/EPS plot ##### by default in certain size and stored in a certain directory FIGDIRPDF <- "/home/komarek/teach/mff_2016/nmsa407_LinRegr/LaTeX/figure_illustr/" FIGDIRPNG <- "/home/komarek/teach/mff_2016/nmsa407_LinRegr/RkoTutor/figPNG/" PDF <- function(file, width = 9, height = 6, FIGDIR = FIGDIRPDF) { pdf(paste(FIGDIR, "/", file, ".pdf", sep=""), width = width, height = height) }