Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (20 sloc) 651 Bytes
#
# error-freq.R, 21 Jun 18
# Data from:
# Frequency Distribution of Error Messages
# David Pritchard
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
#
# TAG student mistakes messages Java Python
source("ESEUR_config.r")
pal_col=rainbow(2)
ef=read.csv(paste0(ESEUR_dir, "sourcecode/error-freq.tsv"), as.is=TRUE, sep="\t")
Java=subset(ef, Lang == "Java")
Python=subset(ef, Lang == "Python")
plot(Java$Occurrences, log="xy", col=pal_col[1],
xlab="Error message rank", ylab="Occurrences")
points(Python$Occurrences, col=pal_col[2])
legend(x="bottomleft", legend=c("Java", "Python"), bty="n", fill=pal_col, cex=1.2)