Hello, could you please help me in the following task:
I am producing a figure with many curves on it (I am using grid.arrange function). How do I make the legends for all those curves smaller so that it can fit the figure itself? this is the way it looks like and this is the code I am using for one particular plot:
I am generating PDF file with all of these plots, separately they look good, but when I use grid.arrange to have one figure with all of these plots, it looks like in that way.
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
Please include some data as well, or else the code you shared is guaranteed to fail, and not produce a representative example of the chart you wish to perfect. The guide I linked to covers that, and also gives you advice to format your post, to increase your chances of getting support.