I am trying to reproduce a plot.
This is original plot that I want to reproduce:

And This is what I am getting:

Here is the code I use in R:
library(ggplot2)
df = read.table(sep=",",
header=T,
text="time,bits
1,1
2,1
2,1
2,1
2,1
5,1
5,1
5,1
6,1
6,1
6,1
6,1
6,1
6,1
7,1
7,1
7,1
7,1
7,1
7,1
7,1
7,1")
mapping <- aes(
x = (time)
)
(ggplot(data=df, mapping=mapping)
+ stat_ecdf(geom = "line")
+ geom_vline(xintercept=df$time, linetype="dotted")
+ theme_bw()
+ labs(x = "time t", y = "bits")
+ scale_x_continuous(breaks = c(1,2,5,6,7))
)
I don't know how to remove the values from the y-axis? Most of the posts that I have found are about not showing the y-axis at all, I just want to hide the values.

