error using 'hjust in cowplot's plot_grid -


i trying make grid of graphs using plot_grid() function in cowplot. can make nice set of graphs, labels set far left... leaves me lots of white space. have tried move labels rightward "hjust" function, error message when this.

here code:

plot_grid(graph4, graph5, graph6, graph7, graph.s16, graph.f16,           align="hv",           labels=c("3%", "21%", "18%", "11%", "42%", "51%"),           ncol = 2,            hjust=-0.5,           label_size=12) 

and here error message:

error in ggplot_to_gtable(x) : argument needs of class "ggplot" or "gtable"

does have idea going on? thank you.


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -