r code for correlation matrix. There are any references about r code for correlation matrix in here. you can look below.