A tutorial of applied R in data analysis and data visualization