R functions

R functions that creating plots and so on