On Thu, Aug 2, 2012 at 5:53 PM, Jose Narillos de Santos
wrote:
> Many thanks Eik it works properly.
>
> what I don´t know exactly is why you put
> c(xv,rev(xv)),c(efinal,rev(efinal2)),col="red" inside polygon. I see it
> works but for the moment I don´t really see the meaning of c() and why is
> n
Many thanks Eik it works properly.
what I don´t know exactly is why you put
c(xv,rev(xv)),c(efinal,rev(efinal2)),col="red" inside polygon. I see it
works but for the moment I don´t really see the meaning of c() and why is
needed to put twice and so on.
If I had a vector of dates associated with e
Hi Jose,
this should work (but I think you need a deeper understanding, what
plot(efinal) does, see ?plot):
plot(efinal,ylim=range(c(efinal,efinal2)),type="n",ylab="")
xv<-seq_along(efinal)
polygon(c(xv,rev(xv)),c(efinal,rev(efinal2)),col="red")
cheers
Am 02.08.2012 16:36, schrieb Jose Narillos
: jrkrid...@inbox.com
Subject: Re: [R] Polygon shaded area
Hi many thanks,
That is my data.
> dput(efinal)
c(0.9525, 0.89785, 0.8931, 0.9308, 0.89335, 0.8729, 0.8521, 0.8556,
0.88135, 0.9093, 0.89375, 0.91155, 0.8881, 0.86655, 0.8927, 0.8898,
0.8703, 0.84863, 0.81745, 0.8349, 0.8248, 0.85
Hi many thanks,
That is my data.
> dput(efinal)c(0.9525, 0.89785, 0.8931, 0.9308, 0.89335, 0.8729, 0.8521,
> 0.8556,
0.88135, 0.9093, 0.89375, 0.91155, 0.8881, 0.86655, 0.8927, 0.8898,
0.8703, 0.84863, 0.81745, 0.8349, 0.8248, 0.85995, 0.8686, 0.83765,
0.86075, 0.8609, 0.8528, 0.8837, 0.8917, 0
> The efinal are two temporal series I attach?
Not attached. R-help typically strips out any attachment to prevent malware
being spread.
The best way to supply sample date is to use the dput() command. See ?dput for
details but basically just say dput(myfile) and copy the results into your
Hi I attach my function. No error message (it seems a line appears but
nothing similar to examples(polygon))
2012/8/2 Eik Vettorazzi
> Hi Jose,
> how about this
>
> example(polygon)
>
> I think the second one is pretty much what you want.
>
> cheers.
>
> Am 02.08.2012 14:33, schrieb Jose Naril
Hi Jose,
how about this
example(polygon)
I think the second one is pretty much what you want.
cheers.
Am 02.08.2012 14:33, schrieb Jose Narillos de Santos:
> Hi all,
>
> I have two vectors (columns) called "efinal" and "efinal 2".
>
> I want to plot them on the same plot and "draw" a shaded a
On 02.08.2012 14:33, Jose Narillos de Santos wrote:
Hi all,
I have two vectors (columns) called "efinal" and "efinal 2".
I want to plot them on the same plot and "draw" a shaded area beween the
two lines using function polygon
I have tried all but I don ´t understand the polygon area, can yo
Hi all,
I have two vectors (columns) called "efinal" and "efinal 2".
I want to plot them on the same plot and "draw" a shaded area beween the
two lines using function polygon
I have tried all but I don ´t understand the polygon area, can you help me
with examples?
plot(efinal,type="l",ylim=rang
10 matches
Mail list logo