Ive put this code in to plot the correlation values to a scatterplot matrix and it keeps coming up with this ERROR. Can you see any errors in my code???
Error: unexpected symbol in "panelcor <- function(x, y){usr <- par("usr"); on.exit(par(usr))par"
The error in your code is the absence of ;'s at the end of statements. If you write a code in a script (or in console) where each statementis in it's own line, ; is not required. But if you write them in same line, you'll have to add them.