I don't manage to reproduce a simple graph with ggplot2. My aim is to have x and y axes displayed. This basic example taken from website do not work and I don't understand why. Any insight highly appreciated!
library(ggplot2)
df <- data.frame(x = 1:3, y = 1:3)
ggplot(df, aes(x, y)) + geom_point()+ theme_classic() + ggtitle("theme_classic()")
I also tried using
theme(axis.line = element_line(colour = "grey50"))
But I have the same problem, namely I get this
Instead of what expected (example for different dataset, point is absence of x and y axes in my example)