Enter below an R command that will output a matrix of scatte…