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)+
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 m
À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))+
scale_y_continuous(
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 uncl
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 s
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)+
geom_line(
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))+
scale_y_continuous(label=scales::label_percent(),breaks=c(1,0.6,0,.3,0.2
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
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
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]]
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 th
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
spec
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
proficien
13 matches
Mail list logo