R program to graph ECDF