I will suggest that if the bty='n' approach works that is a good
solution. If you have 50 graphs and they all have the same legend, then put the
legend in a common area outside the graphs or in graph 1 (and a comment in the
legend or a footnote.) I would be fine with the legend outside the graph, if
that was necessary. If data points are critical for some users then include the
raw data as an appendix or electronic attachment. If I had to wade through a
large number of graphs I think I would get more annoyed at having the legend
appear in odd places within the graph. It might highlight skills in R to make
the legend dynamically placed (change size and placement to fit the largest open
area within a graph), but it would not improve communication in my opinion.
Tim
-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of Helmut Sch?tz
Sent: Tuesday, May 31, 2022 9:30 AM
To: Spencer Graves <spencer.graves at effectivedefense.org>
Cc: r-help at r-project.org
Subject: Re: [R] Placement of legend in base plot()
[External Email]
Hi Spencer,
Spencer Graves wrote on 2022-05-31 15:17:> "bty='n'" will suppress the background, so you can still
see the
> points that would otherwise be covered up by the legend box.
I?m aware of it. ;-)
> That does NOT answer your question, ...
This was just a simple example. Actually I have substantially more points (up to
200).
> ... but it does make it less critical.
True.
Best,
Helmut
--
Ing. Helmut Sch?tz
BEBAC ? Consultancy Services for
Bioequivalence and Bioavailability Studies Neubaugasse 36/11
1070 Vienna, Austria
E helmut.schuetz at bebac.at <mailto:helmut.schuetz at bebac.at> W
https://urldefense.proofpoint.com/v2/url?u=https-3A__bebac.at&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=9NO72pZLgnoRZSjFCNdseyGpk6AS-Iwpxs3YUg-bT2SngmjqG29RX9JnIcL54cOj&s=hAUVAL-GxEh-KuDc_YApvre1s6hV0QfsE21b9Rk8Q2E&e=
<https://urldefense.proofpoint.com/v2/url?u=https-3A__bebac.at_&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=9NO72pZLgnoRZSjFCNdseyGpk6AS-Iwpxs3YUg-bT2SngmjqG29RX9JnIcL54cOj&s=gUelzTVm9msJ7n8yFHBfdkIDVzS_x-DyNpym1u1s7xQ&e=
> F
https://urldefense.proofpoint.com/v2/url?u=https-3A__forum.bebac.at&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=9NO72pZLgnoRZSjFCNdseyGpk6AS-Iwpxs3YUg-bT2SngmjqG29RX9JnIcL54cOj&s=oUVo64ZWk1opLv8fjIMk3GANHGq1mfOh33fxoRv-G1o&e=
<https://urldefense.proofpoint.com/v2/url?u=https-3A__forum.bebac.at_&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=9NO72pZLgnoRZSjFCNdseyGpk6AS-Iwpxs3YUg-bT2SngmjqG29RX9JnIcL54cOj&s=klRyOB7FARO0ueQJtn0VtjoDMAje2lYWmEIxQjxqPrg&e=
>
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dhelp&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=9NO72pZLgnoRZSjFCNdseyGpk6AS-Iwpxs3YUg-bT2SngmjqG29RX9JnIcL54cOj&s=gXqzv-1MQ8EPXUxzYpNnpnPrhYBXvmx2SmtiMLQKNks&ePLEASE
do read the posting guide
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=9NO72pZLgnoRZSjFCNdseyGpk6AS-Iwpxs3YUg-bT2SngmjqG29RX9JnIcL54cOj&s=qlWYT1IEKpduzjOWmayklNYONu7Wgg12zKS-rWyRf7k&eand
provide commented, minimal, self-contained, reproducible code.