When i use ggplot without dplyr I can simply write something along the lines of:
ggplot(fulldata,aes(x=FLYTT))+geom_bar()+coord_flip()
The intuitive way of combining dplyr with ggplot for me would be to write:
fulldata%>%ggplot(,aes(x=FLYTT))+geom_bar()+coord_flip()
Since according to the logic in dplyr, the data argument should not have to be explicitly stated.
When I write this, however, the program throws an error since it can't find the missing x aesthetic.
To rectify this, I have to write:
fulldata%>%ggplot(.,aes(x=FLYTT))+geom_bar()+coord_flip()
What does the "." mean in this context and why won't the code work without it?