Skip to contents

This function takes a data frame with R-squared and RMSE values, computes position coordinates, and prepares data for plotting.

Usage

get_metrics_2plot(data)

Arguments

data

Data frame with R-squared values and RMSE values.

Value

A data frame with additional columns for labeling in the plot.

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)