adding R files and corresponding figures