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,
Mary