We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plot_grid()
byrow
Labels are always attached by row.
p_list <- mtcars %>% split(.$gear) %>% map(~ggplot(.x,aes(x = mpg, y = disp)) + geom_point()) plot_grid(plotlist = p_list, ncol = 2, labels = names(p_list), byrow = F)
p_list["4"]
The text was updated successfully, but these errors were encountered:
If you don't mind adding more code, you can write it like this.
p_list <- mtcars %>% split(.$gear) %>% map(~ggplot(.x,aes(x = mpg, y = disp)) + geom_point()) p_list_label <- c(t(matrix(c(names(p_list), rep(NA, (2 * 2) - length(p_list))), nrow = 2, byrow = FALSE))) plot_grid(plotlist = p_list, ncol = 2, labels = p_list_label, byrow = F)
I wrote this code with reference to the code which is at line181 in plot_grid.R.
Sorry, something went wrong.
If you don't mind adding more code, you can write it like this. p_list <- mtcars %>% split(.$gear) %>% map(~ggplot(.x,aes(x = mpg, y = disp)) + geom_point()) p_list_label <- c(t(matrix(c(names(p_list), rep(NA, (2 * 2) - length(p_list))), nrow = 2, byrow = FALSE))) plot_grid(plotlist = p_list, ncol = 2, labels = p_list_label, byrow = F) I wrote this code with reference to the code which is at line181 in plot_grid.R.
Thanks for your solution, I'd like to use it if I have to adjust the label order manually. 😄
byrow=FALSE
Successfully merging a pull request may close this issue.
Labels are always attached by row.
The text was updated successfully, but these errors were encountered: