This function creates a scatterplot of actual vs. predicted values for a given regression model

plot_y_actual_vs_predicted(y_actual, y_pred, model_name)

Arguments

y_actual

A numeric vector of the actual response variable values

y_pred

A numeric vector of the predicted response variable values

model_name

A character string representing the name of the regression model used for predictions

Value

A ggplot object displaying the scatterplot of actual vs. predicted values, or an error message if an exception occurs