Our legend has so many items in it that we cannot display them all without making the figure bigger just to accomodate the legend. (The legend is displayed to the right of the figure)
Is there some way we can display all the legend items without making the figure taller?
e.g.
make the legend scrollable
give the legend multiple tabs
split the legend into pages and make the pages selectable.
Legends are not scrollable, since they are drawn directly onto the raster canvas of the plot using low-level drawing APIs. Eventually Legends may become separate DOM objects which may allow for scrolling, etc. In the mean time, your best bet is probably the nrows and ncols properties of legends to have the items arranged into grids, instead of just one single long list. There are some full examples here: