I am using ggplot2 to create a series of plots with a large but variable number of rows (typically between 20 and 200). For readability, I would like to include the SAME legend twice: one copy on top and one copy at the bottom.
Unless I am mistaken, there is no easy way to do this by default in ggplot2. Is this correct? It would be nice to be able to specify position = c("top", "bottom") or something similar. Any other suggestion would be appreciated.
Could you share both the data and the code you're using, along with a visual example of what you would like to see? That would be helpful for folks here who would like to help you troubleshoot.
You can share the data by running dput(your data table), then copying the output and pasting it here, between a pair of triple backticks, like this:
```
paste here
```
And you can share the code you used to produce your (undesired) plot in the same way — between a pair of triple backticks.
Many thanks. My use case is more complicated, but I will check if I can do something similar. This is quite hackish for something that ggplot2 should allow by default. Many thanks again!