Closed pat-s closed 6 years ago
d = list(a=1:10, b=1:10)
## function interface was documented in online vignette
plt = map(d, ~ as.ggplot(function() plot(.x)))
cowplot::plot_grid(plotlist=plt, ncol=2)
Thanks! Didn't see it in the vignette.
Probably due to the required
~
character withinas.ggplot2()
. It probablys interfers with the~
operator ofmap()
and hencemap()
cannot find.x
anymore. Leaving it out throws no error but thenas.ggplot2()
"fails to convert".No reprex right now, sorry. But maybe you know where the clash is located.
speclibs
here is a list containing multiple objects that are correctly plotted byplot()
.If it helps, I can provide a reprex later. Thanks for the nice idea of this package!