Legend is cropping itself in plot display?


I have created a plot and for some reason some of the components in my legend are cropped out. Does anyone know how to fix this? Also is there a way to arrange the legend so that I can have it in this format and can i specify which order these variables go in for the legend?


colour a space colour e space colour i
colour b space colour f space colour j
colour c space colour g
colour d space colour h

Can you provide a reproducible example?