veri=read.table("veri");
t=table(veri)
sum(t[1:3]) / sum(t)
t[1:3]
sum(t)
stat=read.table("stat");
png("comb.png", width=600, height=400);
plot(stat[,1],stat[,2], type="n", xlab="No. of Sentences", ylab="No. of Combinations", font=2, cex=2); 
lines(stat[,1], stat[,3]); 
lines(stat[,1], stat[,2], col="blue", lwd=2); 
points(c(stat[1e5,1], stat[1e5,1] ), c( stat[1e5,2], stat[1e5,3]), lwd=8); 
text(stat[1e5,1], stat[1e5,2], labels=paste("Total number of combinations: ",  stat[1e5,2]), adj=c(-2,-1), pos=2, cex=1.2);
text(stat[1e5,1], stat[1e5,3], labels=paste("Number of unique combinations: ", stat[1e5,3]), adj=c(1,-1), pos=NULL, cex=1.2);
dev.off();
remove(veri)
veri=read.table("freqs")
t=table(veri)
sumt[1:3])/sum(t)
sum(t[1:3])/sum(t)
sum(t)
