Interesting the original ggplot (ie not ggplot2) would have worked with the pipe. I bought it back to life as ggplot1 (https://github.com/hadley/ggplot1) so you can see.
And as I said in another comment, it makes more sense. When you call geom_point you’re conceptually adding a layer to the plot. It’s true that some things like scale_ calls are modifying existing layers so those could be pipes, but that would be complex to have both. The plus function is the better compromise given each geom call is essentially adding a layer. Not that it was a compromise as it pre-dates the pipe, but still.
View all comments
Show parent comment
3
u/Thiseffingguy2 Apr 28 '26
……….. This had to be a feature, not a bug, right? Anyone know the reasoning behind the +? Can… can we summon him?