Could you elaborate on what SizeLegend will do? I have been working on code using discreteattrmap and discreteattrvar to 1)…