Re: [R] Placement of legend in base plot()

2022-05-31 Thread Helmut Schütz
Dear Timothy, Ebert,Timothy Aaron wrote on 2022-05-31 15:42: I will suggest that if the bty='n' approach works that is a good solution. Sometimes though not always. 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

Re: [R] Placement of legend in base plot()

2022-05-31 Thread Helmut Schütz
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

Re: [R] Placement of legend in base plot()

2022-05-31 Thread Ebert,Timothy Aaron
To: Spencer Graves Cc: r-help@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

Re: [R] Placement of legend in base plot()

2022-05-31 Thread John Fox
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