This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tikz("./figures/pareto.tikz", width=6.0, height=3.50) | |
defects <- c(56, 45, 23, 12, 8, 6) | |
names(defects) <- c("Blem.", 'Scratch', 'Chip', 'Bend', 'Dent', | |
'Others') | |
defects_sort <- sort(defects, decreasing=TRUE) | |
# par(mar = c(5, 4, 4, 4) + 0.3) | |
par(mar = c(5, 4, 3, 4) + 0.3) | |
bp <- barplot(defects, | |
# panel.first=grid(ny=NULL, nx=NA, lty="dashed", col="black"), | |
ylim=c(0, sum(defects)* 1.05), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile for knitr | |
# optionally put all RNW files to be compiled to pdf here, separated by spaces | |
RNW_FILES= $(wildcard *.Rnw) | |
# location of Rscript | |
R_HOME?=/Library/Frameworks/R.framework/Resources | |
# these pdf's will be compiled from Rnw and Rmd files | |
PDFS= $(RNW_FILES:.Rnw=.pdf) |
NewerOlder