I don't understand this comment. I always thought that aes are "aestetic mappings", and parameter are either setting some mapping to a single value or are used for some other stuff (the geom_function stuff).

If In understand the code correctly, I would comment it as "only keep columns which are used in this layer"