My Keying (3)

Bug_dw_up

This is a scatter plot considering the dot (or dash) with its directly following space as an entity. The group 1 consists of, say “h”s, in which both dot and space periods are very exact. The group 2 consists of the letters such as “o”s, in which both the periods are controlled manually. The groups 3 and 4 are for the spaces between letters.

% head w2
dw 20
up 34
dw 105
up 98
dw 96
up 44
dw 22
up 26
dw 24
up 28
% cat myprog.awk
{
 if(NR%2 == 0) print b4, $2
 b4=$2
}
% gawk -f myprog.awk <w2 >dw_up
% head dw_up
20 34
105 98
96 44
22 26
24 28
% R
> mydata<-read.table("dw_up")
> mydata
    V1  V2
1   20  34
2  105  98
3   96  44
4   22  26
5   24  28
> plot(mydata$V1,mydata$V2,col="blue",xlim=c(0,250),ylim=c(0,250),main="Dot/Dash vs. Space",xlab="Dot/Dash",ylab="Space")