Supreme!
Thanks Gabor!
On Tue, Mar 3, 2009 at 15:20, Gabor Grothendieck
wrote:
> If you want to use abline on a multivariate plot it must be issued
> within a panel function like this:
>
> # same set up as in prior email
> p <- function(x, y, ...) { points(x, y); lines(x, y); abline(v =
> time(s)
If you want to use abline on a multivariate plot it must be issued
within a panel function like this:
# same set up as in prior email
p <- function(x, y, ...) { points(x, y); lines(x, y); abline(v =
time(s)[s > 0], col = "green") }
plot(cbind(x, s), panel = p)
There are further examples of panel
Gabor, yes, I want to color portions of EACH plot of the MULTIPLE plot
done with plot.zoo()
I tried to do:
plot(multivariate zoo object)
abline(v=...)
but that does not work.
I will check your suggestions of the examples.
Thank you for your help, as always!
Best,
Sergey
On Tue, Mar 3, 2009 at
Do you mean you want to shade a portion of the plot?
There are two examples of that in the examples section of ?plot.zoo
and a further example using xyplot.zoo in the examples section of
?xyplot.zoo
On Tue, Mar 3, 2009 at 8:37 AM, Sergey Goriatchev wrote:
> Hi, Gabor
>
> No, what I am trying to
Hi, Gabor
No, what I am trying to do is similar to:
abline(v=time(spread)[spread[,"Indicator"]==(-1)], col="yellow"),
where spread is the multivariate zoo object (say, 5 timeseries).
That is, I want to color parts of the plots where indicator==(-1), but
do the coloring
without using layout() and
Are you trying to color the points themselves? This plots the
first two series in frame 1 (they are the same but one is plotted
as points and the other as a line) and the third series is shown
in frame 2 and for the series of points it colors them green or red.
The lines are all colored black:
Hello, everyone
I have a zoo object containing several time series of daily frequency.
One of these timeseries is an indicator function with value (-1) at
certain times, and (+1) at the other.
I do a plot of several of the timeseries in one go (a multiple plot).
I wonder if I can automatically in
7 matches
Mail list logo