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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -