I use this code
legend("topright", legend = c("Sub_metering_1", "Sub_metering_2", "Sub_metering_3"),
col = c("black","red","blue"),lty = 1,cex = 0.5, y.intersp = 0.2,)
and I have this legend.
but I want to enlarge the text, something like this,
but without enlarging the box.
Can you please help me?