R codes in code folder and PNG plots in plot folder