Can you explain me how, with R code, we draw coverage graph for the CI? For example, we have 40 samples (each one of size 20) and we have calculated the CI for each one of the 40. Our mission right now is to draw something like that:
Where each line is for vector of 20 samples, and the Y axis is for the actual interval.
Note: I have the "pivot" of each interval (the middle point).
Thanks!

You say you have 40 samples and only show 20. From the information given, it is not possible to know from which population distribution you are sampling [I used $\mathsf{Norm}(\mu = 0, \sigma=15)$] or what confidence level you are using [I used 95%]. Also, I used $m =40$ samples of size $n = 20.$
I used standard t confidence intervals of the form $$ \bar X \pm t^* S/\sqrt{n},$$ where $t^* = 2.093$ cuts 2.5% from the upper tail of Student's t distribution with $\nu = 20 - 1 = 19$ degrees of freedom. So the center of each interval is the sample mean. (You may be mis-using the term 'pivot'.)
On average, there will be 2 confidence intervals out of 40 that do not cover. For the seed chosen, there happen to be 38 CIs that cover and two that don't. (If you want a variety of plots, delete the
set.seedstatement before you make subsequent runs of the program.)You can adjust constants on the second line of the R code shown below the figure to get exactly what you want. (The R code is entirely from the base of R, with no special libraries required.)
.