Integrated the FigureX.r

Need to add more comments and allow user to change parameters of graphs