Re: [R] Ggplot2 Line Problem

2020-08-16 Thread Rui Barradas
Hello, Sorry, I forgot you also want the line type changed. Remove color and linetype from the initial call to ggplot and include aes(color = cases, linetype = cases) in geom_line. Then add a layer scale_linetype_manual with the same name and labels to merge it with the color legend. dfO

Re: [R] Ggplot2 Line Problem

2020-08-16 Thread Rui Barradas
Hello, This type of problem is almost always a data reshaping problem. ggplot graphics work better if the data is in the long format and you have 3 columns for counts, one column for each category. If you reformat from the current wide format to the long format you will have a date vector, a

Re: [R] Best settings for RStudio video recording?

2020-08-16 Thread Jeff Newmiller
In my experience pixel count is only indirectly related to legibility on a small screen, since they may have very high pixel count yet still be poorly readable with "normal" programming font sizes. If you really want to support that then increase font size. Slide presentations have similar

[R] Ggplot2 Line Problem

2020-08-16 Thread Stephen P. Molnar
I have cobbled together a short script to plot Covid-19 data. setwd("~/Apps/Models/1-CoronaVirus") library(tidyverse) library(lubridate) datO <- read.csv("https://api.covidtracking.com/v1/states/oh/daily.csv;) datO[ ,1] <- ymd(datO[ ,1]) dfO <- tibble::as_tibble(data.frame(datO[

Re: [R] Plot math symbol with string and number

2020-08-16 Thread Rasmus Liland
On Sun, Aug 16, 2020 at 3:18 PM Bert wrote: | On Sun, Aug 16, 2020, 14:53 John wrote: | | | | I would like to make plots with | | titles for different data sets and | | different parameters. The first | | title doesn't show sigma as a math | | symbol, while the second one | | doesn't contain

Re: [R] Plot math symbol with string and number

2020-08-16 Thread Bert Gunter
Specifically, see the "how to combine "math" and numeric variables" in the Examples therein. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Aug 16, 2020

Re: [R] Best settings for RStudio video recording?

2020-08-16 Thread Bert Gunter
Completely agree with Roy M. and do not wish to express any opinion, but this typo was too precious to ignore: "If the criteria is: Sacrificing prophets (not just theirs, but their *holding/sibling companies too*), for some public benefit(s)..." Oh gosh, I hope no prophets are sacrificed ...

Re: [R] Best settings for RStudio video recording?

2020-08-16 Thread Boris Steipe
I totally agree with Roy, thank you. I hope that we can get the discussion back on OP's question (which is timely and very important, and actually not specific to the IDE). The problem is that our possibilities to test user experience are usually limited. AFAIK students could be participating

Re: [R] Best settings for RStudio video recording?

2020-08-16 Thread Roy Mendelssohn - NOAA Federal via R-help
May I suggest that this discussion is best left for another time and place. Some people have very strong opinions about RStudio vis a vis R, it has been discussed here before, shedding mostly heat and not a lot of light (nor do I think anyone had their mind changed), and worse the

Re: [R] Hot Air Balloon Weather Briefings

2020-08-16 Thread Jim Lemon
Hi Philip, My fault for assuming that what worked for the sample data would work for the entire data set. If you run the following code: # read the file into a data frame phdf<-read.csv("phdf.csv",stringsAsFactors=FALSE) print(dim(phdf)) # create a logical variable for the subsetting step

Re: [R] Best settings for RStudio video recording?

2020-08-16 Thread Abby Spurdle
> a) Read about it yourself. It is a legal definition. Not quite. Your statement implies some sort of universalism, which is unrealistic. Legal definitions vary from one legal system to the next. I'm not an expert in US company/corporate law. But as I understand it, the applicable laws vary from

Re: [R] Plot math symbol with string and number

2020-08-16 Thread Bert Gunter
?plotmath On Sun, Aug 16, 2020, 14:53 John Smith wrote: > Dear Helpers, > > I would like to make plots with titles for different data sets and > different parameters. So a useful title should combine data name > and parameter for clarity. The following is a simplified code example with > two

[R] Plot math symbol with string and number

2020-08-16 Thread John Smith
Dear Helpers, I would like to make plots with titles for different data sets and different parameters. So a useful title should combine data name and parameter for clarity. The following is a simplified code example with two plots. The first title doesn't show sigma as a math symbol, while the

Re: [R] Best settings for RStudio video recording?

2020-08-16 Thread John C Frain
On Sun 16 Aug 2020 at 06:32, Jeff Newmiller wrote: > a) Read about it yourself. It is a legal definition. > > b) Don't "correct" me with misinformation you are clearly inventing. > RStudio the software does not "introduce people to a modified version of > R." Each user has to opt in to that