plot()
does not work. The closest you can get is:
library(dplyr) library(hflights) summary <- hflights %>% group_by(Year, Month, DayofMonth) %>% select(Year:DayofMonth, ArrDelay, DepDelay) %>% summarise( arr = mean(ArrDelay, na.rm = TRUE), dep = mean(DepDelay, na.rm = TRUE) ) summary %>% plot(arr ~ Month, .)
Another option is to use ggvis, which is clearly designed to work with pipes:
library(ggvis) summary %>% ggvis(~Month, ~arr)
source share