Extract geom, stat and position protos from a ggplot2 layer
proto_features(l)
l
ggproto
data.frame
proto_features(ggplot2::geom_smooth()) proto_features(ggplot2::annotation_logticks())