I want to print in a plot the correlation between pred x obs, the RMSE and Rsquared. When I calculate using "postResample", I get both values together, but I want them separated. So when I ask R to plot, it plots everything together. Could somebody help plotting it separated?
## Ploting residuals
axisRange <- extendrange(c(observed, predicted))
plot(observed, predicted,
 ylim = axisRange,
 xlim = axisRange,
 ylab = 'Predicted',
 xlab = 'Observed', las=1)
 ## correlation predicted x observed
 inform = as.character(round(cor(predicted, observed), digits = 2))
 text(x=10,y=46, paste('Corr =', inform))
 text(x=10,y=43, paste('RMSE =', inform))
 text(x=10,y=40, paste('RSquared =', inform))
 ## Adding reference line
 abline(0, 1, col = "darkgrey", lty = 2)
 ## Calculating Rsquared and RMSE
 postResample(predicted, observed)
 
    