Re: [R] Date order question

2023-01-04 Thread PIKAL Petr
Hallo Thomas Similar as suggested by Rui, you shall change your date to real date e.g. by library(lubridate) date <- paste(date, c(rep(2022,2), 2023), sep="-") date <- mdy(date) and you need to change also x coordinate in annotate. ggplot(data, aes(x=date,y=PT,group=1))+ geom_point(size=4)+

Re: [R] Date order question

2023-01-04 Thread CALUM POLWART
On Wed, 4 Jan 2023, 21:29 Ebert,Timothy Aaron, wrote: > > As you are plotting strings, you could put a space character in front of > the December dates so that they are first. > date<-c(" 12-29"," 12-30","01-01") > That fixes the problem in this example. You can order all the dates by > putting

Re: [R] Date order question

2023-01-04 Thread Rui Barradas
Às 21:08 de 04/01/2023, Thomas Subia escreveu: Colleagues, date<-c("12-29","12-30","01-01") PT <- c(.106,.130,.121) data <- data.frame(date,PT) ggplot(data, aes(x=date,y=PT,group=1))+ geom_point(size=4)+ geom_line()+ geom_hline(yintercept =c(1,.60,0,.30,.25,.2))+

Re: [R] is it possible to run multiple rmd files together

2023-01-04 Thread CALUM POLWART
I get frustrated by our peers who reply "please provide a worked example" but OMG... Please provide a worked example! You can't use: source("filename.Rmd") as it isn't a simple set of R code. You can do: Rmarkdown::render("filename.Rmd") You can also knit child files. But it is completely

Re: [R] Date order question

2023-01-04 Thread Ebert,Timothy Aaron
1) Your "dates" are not being processed as dates. They are strings. 2) As written your date "01-01" comes first because year is not specified and January comes before December. 3) A library statement is missing. I tried running the program and theme_cowplot() was not found. As you are plotting

Re: [R] Date order question

2023-01-04 Thread Andrew Simmons
I converted `date` to a factor and it seemed to work: ``` library(ggplot2) library(cowplot) date <- c("12-29","12-30","01-01") date <- factor(date, labels = unique(date)) PT <- c(.106,.130,.121) data <- data.frame(date,PT) ggplot(data, aes(x=date,y=PT,group=1))+ geom_point(size=4)+

[R] Date order question

2023-01-04 Thread Thomas Subia
Colleagues, date<-c("12-29","12-30","01-01") PT <- c(.106,.130,.121) data <- data.frame(date,PT) ggplot(data, aes(x=date,y=PT,group=1))+ geom_point(size=4)+ geom_line()+ geom_hline(yintercept =c(1,.60,0,.30,.25,.2))+

Re: [R] Pipe operator

2023-01-04 Thread avi.e.gross
Yes, not every use of a word has the same meaning. The UNIX pipe was in many ways a very different animal where the PIPE was a very real thing and looked like a sort of temporary file in the file system with special properties. Basically it was a fixed-size buffer that effectively was written into

Re: [R] is it possible to run multiple rmd files together

2023-01-04 Thread Anders Alexandersson
Try the bookdown package: https://bookdown.org/yihui/bookdown/usage.html On Wed, Jan 4, 2023 at 11:19 AM Kai Yang via R-help wrote: > Hi Team,I have multiple rmd files (~50) for difference study report. I did > try the source command to run them together, but it seems doesn't work.Is > there a

[R] is it possible to run multiple rmd files together

2023-01-04 Thread Kai Yang via R-help
Hi Team,I have multiple rmd files (~50) for difference study report. I did try the source command to run them together, but it seems doesn't work.Is there a way to run those rmd files from one script?Thanks,Kai [[alternative HTML version deleted]]

Re: [R] [External Email] Re: R Certification

2023-01-04 Thread Christopher Ryan via R-help
Couldn't one just show prospective employers some impressive things one has done in R? Seems to me that would be more meaningful than any sort of certificate. --Chris Ryan On Wed, Jan 4, 2023 at 4:08 AM Mukesh Ghanshyamdas Lekhrajani via R-help wrote: > > Hey Rich, > > > > Out of all the help

Re: [R] R Certification

2023-01-04 Thread Mukesh Ghanshyamdas Lekhrajani via R-help
Hey Rich, Out of all the help that I have received so far on my email, this email (below) resolves 95% of my query, the remaining 5% is to justify a few things…. "what VALUE would a certificate about R provide?" * Few of my prospect employers are looking at data analyst with

Re: [R] R Certification

2023-01-04 Thread Richard O'Keefe
I note that Java, for example, has changed a LOT and a certificate from, say, 10 years ago, wouldn't impress me much today. The same can be said of C#, and of R. So the question would be, "what VALUE would a certificate about R provide?" Well, for one thing, it would be a certificate of