Re: [R] ggplot2 with an arbitrary number of curves from geom_function + legend?

2022-02-27 Thread Jeff Newmiller
Well, the ggplot2 CRAN page [1] points people to [2], which in turn points out that support can be found on the RStudio community forums and StackOverflow, so there is a path from here (where contributed packages are off-topic per the Posting Guide) to getting help. I will point out that the ca

Re: [R] ggplot2 with an arbitrary number of curves from geom_function + legend?

2022-02-27 Thread Avi Gross via R-help
I would reply but since ggplot was mentioned, I must abstain. ;-) I will say that you can use ggplot in a loop in some cases if you do this: p <- ggplot(...) + ... Then you can in your loop keep adding to p as in: p <- p + geom_whatever() + ... You do at some point need to make p print itself

Re: [R] tidying up

2022-02-27 Thread Bert Gunter
For those wishing to make changes to r-help or seeking info on the R mailing lists in general, please consult: https://www.r-project.org/mail.html You may wish to cc Martin Maechler on any proposals for change, as he is one of the maintainers -- or at least can contact the maintainers -- of these

Re: [R] tidying up

2022-02-27 Thread Jeff Newmiller
FWIW my brief answer to your brief question is "of course" it is okay. The real problem however are the questions that can only be answered by people with detailed understanding of non-R-related issues, such as the workings of the custom interactive graphics device used by RStudio or the broken

Re: [R] tidying up

2022-02-27 Thread Avi Gross via R-help
Indeed, Jim, the hopeful purpose of interactions here is to help people without doing the job for them. As you note, sometimes it is help in getting them to formulate what they are trying to do and maybe see the resolution on their own, or give enough info that others can troubleshoot. I have d

Re: [R] tidying up

2022-02-27 Thread Jim Lemon
Hi Avi, I just sent in an answer to a very simple question. In many cases it seems to me that the real problem isn't apparent from the request. ektaraK appears to have almost no experience with R (sorry if I'm wrong). A person in this position may sort of know what they want to do but do not know h

Re: [R] Plot by month

2022-02-27 Thread Jim Lemon
Hi ektaraK, Here is a step by step way to create an example and get your plot: # make up a lot of dates dates<-as.Date("2021-1-1")+sample(0:364,100) # make up the temperatures temps<-runif(100,0,40) # create a data frame mydf<-data.frame(date=dates,temp=temps) # create a month variable mydf$month<

[R] tidying up

2022-02-27 Thread Avi Gross via R-help
This mailing list seems to steadily get messages that some see as not relevant to this forum. In particular, some see it as wrong to bring up some things here and keep reminding people of some ground rules. So I want to know, briefly, if it is reasonable to ask a person with a question or probl

Re: [R] Plots not showing up in the RStudio plot pane

2022-02-27 Thread Md. Moyazzem Hossain
Dear Jeff Newmiller Thank you very much for your reply. Take care. Hossain On Sat, Feb 26, 2022 at 10:30 PM Jeff Newmiller wrote: > This mailing list is about R, not RStudio [1]. RStudio normally sets up > the default graphics device to be their IDE device, but details as to why > that behav

Re: [R] Plots not showing up in the RStudio plot pane

2022-02-27 Thread Edjabou Vincent
Hej Try maybe: dev.off() before plotting. Regards, Vincent Edjabou Mobile: +45 31 95 99 33 linkedin.com/vincent Orcid: -0003-2849-6151 On Sat, Feb 26, 2022 at 11:04 PM Md. Moyazzem Hossain wrote: > Dear R-experts, > > I hope that