show the right-false guess of a model in a graphic

Hello colleagues,

I don´t know how to reflect in a ggplot and with different forms the output of the right guess or false guess data of a prediction model.

I have a test: testData and a prediction model: model_svm, that have done some predictions preds_svm.
I search the relation between x=Experience and y=Revenue, coloring in 3 colors depending of Comercial people.
I need to reflect in the graph with 2 different forms (ellipse and other) the right and false predictions.

The instruction I have prepared is correct by I can´t relfect the right-false data of the prediction model with different forms:

graph<-ggplot (testData, aes(x=Experience, y=Revenue, color=Comercial)) +
geom_point() +
geom_smooth(method=lm, aes(fill=Comercial))+
stat_ellipse(type = "norm")

Many thanks,


To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.