I want to do a barplot of this dataset
df <- data.frame(Modelos=c("Model 1", "Model 2"),
MSE_test=c(123293931,23231231),MSE_train=c(100001,2292894))
I want to do a barplot of this to compare the values of each model in train and test. I think on that code but this doesn't do what I want.
ggplot(df, aes(x=Modelos,y=MSE_test, fill = MSE_train)) +
geom_bar(position = "dodge")
I want each Model in the x axis and for each model one bar to test and the other to train. I hope to be clear.