In [74]:
%load_ext rmagic
In [75]:
%%R
dir = "25-05-2014"
mutations.mod = read.csv(paste(dir, "mutations", "mutations.mod.csv", sep="/"), col.names = c("input", "type", "new", "old", "pos", "class"), header = F, sep=" ")
mutations.ext = read.csv(paste(dir, "mutations", "mutations.ext.csv", sep="/"), col.names = c("input", "type", "new", "old", "pos", "size", "class"), header = F, sep=" ")
mutations.con = read.csv(paste(dir, "mutations", "mutations.con.csv", sep="/"), col.names = c("input", "type", "new", "old", "pos", "size", "class"), header = F, sep=" ")
In [76]:
%%R
data = mutations.mod
types = levels(factor(data$input))
classes = levels(factor(data$class))
In [77]:
%%R
print(summary(data))
In [78]:
%%R
hist(data$old, main="old byte", col="lightgreen")
hist(data$new, main="new byte", col="lightgreen")
hist(data$pos, main="position of the modification (0%-100%)", col="lightgreen")
In [79]:
%%R
colors = rainbow(2)
plot(x=data$new, y=data$old, col = data$input)
legend(210, 240, types, pch=1, cex = 1.4, col = factor(types))
plot(x=data$new, y=data$pos, col = data$input)
plot(x=data$old, y=data$pos, col = data$input)
In [80]:
%%R
plot(x=data$old, y=data$new, col = data$class)
legend(210, 240, classes, pch=1, cex = 1.4, col = factor(classes))
plot(x=data$old, y=data$pos, col = data$class)
plot(x=data$new, y=data$pos, col = data$class)
In [81]:
%%R
data = mutations.ext
types = levels(factor(data$input))
classes = levels(factor(data$class))
In [82]:
%%R
print(summary(data))
In [83]:
%%R
hist(data$old, main="old byte", col="lightgreen")
hist(data$new, main="new byte", col="lightgreen")
hist(data$size, main="size of extension", col="lightgreen")
hist(data$pos, main="position of the extension (0%-100%)", col="lightgreen")
In [84]:
%%R
plot(x=data$new, y=data$old, col = data$input)
legend(200, 240, types, pch=1, cex = 1.4, col = factor(types))
plot(x=data$new, y=data$pos, col = data$input)
plot(x=data$new, y=data$size, col = data$input)
In [85]:
%%R
plot(x=data$old, y=data$pos, col = data$input)
plot(x=data$old, y=data$size, col = data$input)
plot(x=data$pos, y=data$size, col = data$input)
In [86]:
%%R
plot(x=data$new, y=data$old, col = data$class)
legend(200, 240, classes, pch=1, cex = 1.4, col = factor(classes))
plot(x=data$new, y=data$pos, col = data$class)
plot(x=data$new, y=data$size, col = data$class)
In [87]:
%%R
plot(x=data$old, y=data$pos, col = data$class)
plot(x=data$old, y=data$size, col = data$class)
plot(x=data$pos, y=data$size, col = data$class)
In [88]:
%%R
dir = "25-05-2014"
events.sizes = read.csv(paste(dir, "event_sizes", "events.sizes.csv", sep="/"), col.names = c("size", "class"), header = F, sep=" ")
data = events.sizes
classes = levels(factor(data$class))
In [89]:
%%R
print(summary(data))
In [90]:
%%R
hist(data$size, main="sizes", col="lightgreen")
hist(data$size[data$size<1000], main="sizes < 1000", col="lightgreen")
In [91]:
%%R
plot(data.frame(data$size,1), type = 'o', pch = '|', ylab = '', col = data$class)
legend(140000, 1.4, classes, pch=1, cex = 1.4, col = factor(classes))
plot(data.frame(data$size[data$size<1000],1), type = 'o', pch = '|', ylab = '', col = data$class[data$size<1000])