[R] Placement of legend in base plot()

Helmut Schütz he|mut@@chuetz @end|ng |rom beb@c@@t
Tue May 31 16:26:29 CEST 2022


Dear John,

John Fox wrote on 2022-05-31 15:35:
> Dear Helmut,
>
> I'm not sure why you're seeing an error, but replacing the last 
> several commands in your code with
>
>     legend(loc, legend = lgd, x.intersp = 0, title = paste("n =", 
> n.pts[1]), bg = bg)
>
> works perfectly fine for me. I suspect that the example you posted 
> differs in some respect from the code that produces the error.

loc is a character vector of length one. Works as intended -- I stand 
corrected!

Best,
Helmut
-- 
Ing. Helmut Schütz
BEBAC – Consultancy Services for
Bioequivalence and Bioavailability Studies
Neubaugasse 36/11
1070 Vienna, Austria
E helmut.schuetz using bebac.at <mailto:helmut.schuetz using bebac.at>
W https://bebac.at <https://bebac.at/>
F https://forum.bebac.at <https://forum.bebac.at/>



More information about the R-help mailing list