Re: [R] legend: interplay between title and y.intersp

2023-03-06 Thread Sigbert Klinke
Hi, that is perfect. Thanks Sigbert Am 06.03.23 um 13:08 schrieb Uwe Ligges: What about  plot(c(0,1), c(0,1), type="n")  legend("top", legend=c("", "a", ""), col=c("blue", "red", "green"), title="test", y.intersp=c(1,-0.4), lwd=1) (in recent versions of R) Best, Uwe -- https://hu.ber

Re: [R] legend: interplay between title and y.intersp

2023-03-06 Thread Uwe Ligges
What about plot(c(0,1), c(0,1), type="n") legend("top", legend=c("", "a", ""), col=c("blue", "red", "green"), title="test", y.intersp=c(1,-0.4), lwd=1) (in recent versions of R) Best, Uwe On 06.03.2023 11:34, Sigbert Klinke wrote: Hi, I think you are right, legend cannot do it.

Re: [R] legend: interplay between title and y.intersp

2023-03-06 Thread Sigbert Klinke
Hi, I think you are right, legend cannot do it. I have now created my own legend function where I changed only one line and now it works the way I want it to. But I'm not sure if that might not have other side effects. I have the impression that the legend and the title start at the same y