I made a ggplot, I would like to use the results from a function.
How can I return the result of stat_summary_2d?
ggplot(diamonds, aes(carat