I am trying to create multiplot that contains a map (using geom_sf
) and a graph next to each other.
I tried to use GGpubr::ggarrange
and cowplot::plot_grid
for this purpose. But I get this warning:
1: In as_grob.default(plot) :
Cannot convert object of class tbl_dftbldata.frame into a grob.
And the result is not showing the map.
Does anyone know Any packages that can help me with this issue? A packages to use instead of GGpubr
or cowplot
?
CodePudding user response: