draw.legend(canvas, legends, location, border = "stroke: black; stroke-width: 5px; stroke-dash: solid;", gSize = "120,45");