Visualizing grouped dplyr operations

Step through the pipeline: group_by(sex) tags the rows into groups, then summarize(fare = mean(fare)) turns each group into one mean.

R code


  

Data

Output