ggplot2 - How to add unique legend for multiple plots with grid.arrange?
问题 I have a plot with 4 panels inside made with ggplot2 and grid.arrange . Each of the panel has a legend which is the same for all of them. How can I remove the 4 legends and create a unique one at the bottom of the plot? Here my sample data and plot: set.seed(100) df_1 = data.frame(lat = rnorm(20), lon = rnorm(20), cor = c(rep('positive', 7), rep('negative', 13)), sign = c(rep(99, 5), rep(95, 6), rep(90,9))) lst_df = list(df_1, df_1, df_1, df_1) library(ggplot2) library(gridExtra) library(grid