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 1

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
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

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 from

Re: [R] Unable to install gsynth without life package

2022-05-31 Thread Ebert,Timothy Aaron
You could play with install.versions() from the versions package. https://cran.r-project.org/web/packages/versions/README.html I would try installing versions of both packages from the last time you got them to work together. Tim -Original Message- From: R-help On Behalf Of Jeff Newmi