Include resolution of magrittr pipes (%>%) prior to evaluating the ggplot() call for data capture.
Goal:
p %g<% dat %>% ggplot(aes(x, y))
The name could be captured from the lhs of %>% for storage. If used in a complete pipeline, this may not have a valid name, so some care should be taken about what to use.
Admittedly, this is less likely to be used than just ggplot(dat, aes(x, y)) but pipeline-compatibility would be good.
Include resolution of
magrittrpipes (%>%) prior to evaluating theggplot()call for data capture.Goal:
The name could be captured from the
lhsof%>%for storage. If used in a complete pipeline, this may not have a valid name, so some care should be taken about what to use.Admittedly, this is less likely to be used than just
ggplot(dat, aes(x, y))but pipeline-compatibility would be good.