Prorgam reads RGG, computes avg values of samples and drows plot of samples by range.