[MOD] adapted R chart for generating charts