Re: [R] R Script Modification Questions

2020-08-19 Thread Rasmus Liland
Dear Stephen, I answer inline: On 2020-08-19 12:57 +1000, Jim Lemon wrote: | On Wed, Aug 19, 2020 at 3:09 AM Stephen P. Molnar wrote: | | | | What I would like to do is use | | linetype, rather than color, in line | | 27. You need to specify linetype instead of color in ggplot::aes, like so

Re: [R] R Script Modification Questions

2020-08-18 Thread Jim Lemon
Okay, I can't help much with the ggplot stuff so forget the "lty=" argument for that is base graphics. However, you may get away with ggtitle(paste0("COVID-19 Tests in Ohio \n(",date[length(date]),")"))+ I don't know whether the tidy* stuff handles indexing in the same way as base R. Jim On Wed

Re: [R] R Script Modification Questions

2020-08-18 Thread Rasmus Liland
Dear Stephen, I reply you inline: On 2020-08-18 11:09 -0700, Bert Gunter wrote: | On Tue, Aug 18, 2020 at 10:10 AM Stephen P. Molnar wrote: | | | | Thanks to the kind folks on this | | list, this is an elegant replacement | | for the clumsy R script that I that | | I wrote. | | | | | | | |

Re: [R] R Script Modification Questions

2020-08-18 Thread Bert Gunter
1. Generally you should make your posts self-contained -- I see no line 14's or 33's or whatever. Note that you did not continue the old thread either. I have no desire to go poking around in previous threads (others certainly may!). 2. Re: max of dates. max(as.Date(c("1976-04-07","1982-02-22"))

[R] R Script Modification Questions

2020-08-18 Thread Stephen P. Molnar
Thanks to the kind folks on this list, this is an elegant replacement for the clumsy R script that I that I wrote. However, I do have a few changes that I would like to make. The problem is that while I know how to make changes in Python, I am still bumbling around in R Code. The day-to-d