Gets R-squared values for plotting.
get_metrics_2plot.Rd
This function takes a data frame with R-squared and RMSE values, computes position coordinates, and prepares data for plotting.
Examples
data_metrics <- data.frame(from = c("A", "B", "C"),
description = c("Desc1", "Desc2", "Desc3"),
R2 = c(0.9, 0.8, 0.7),
RMSE = c(0.6, 0.2, 0.1))
result <- get_metrics_2plot(data_metrics)