I don't understand what the .
in the following code is doing or where to find documentation for it:
library(tidyverse)
ggplot(iris) +
geom_point(
aes(x=Sepal.Length, y=Sepal.Width),
data = . %>% filter(Species == 'setosa')
)
This appears to be behaving quite differently from the usage described in What does the dplyr period character "." reference? where the .
does not appear in the left-hand-most position.
The docs here say merely
A pipeline with a dot (.) as LHS will create a unary function. This is used to define the aggregator function.
but this is not at all clear to me and I'm hoping for more information.