[R] Time Series Graphics - "cannot plot more than 10 series"
Gabor Grothendieck
ggrothendieck at gmail.com
Sat Feb 7 17:59:36 CET 2009
Each series should be a column, not a row. See ?t
On Sat, Feb 7, 2009 at 11:12 AM, Dominik Hattrup
<dominik.hattrup at googlemail.com> wrote:
> Hi Experts,
>
> I would like to present time series data in meaningful way in building
> some graphics. I've tried:
>
> (1) plot(ts(mbaye3))
>
> and
>
> (2) plot(ts(mbaye3), start=1990)
>
> But I always get this error-message:
>
> Fehler [error] in plotts(x = x, y = y, plot.type = plot.type,
> xy.labels = xy.labels, :
> cannot plot more than 10 series as "multiple"
>
>
> my data:
>
> mbaye3
> year
> name 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982
> 1983 1984
> Denmark 0 0 0 0 0 0 1 0 0 0 1
> 2 1
> France 0 1 0 0 1 0 3 0 0 0 2
> 5 5
> Germany 0 0 1 0 0 0 1 0 0 1 3
> 1 6
> Greece 0 0 0 0 0 0 0 0 0 0 0
> 0 3
> Ireland 0 0 0 0 0 1 0 1 1 2 1
> 1 1
> Italy 3 0 0 1 2 3 4 6 8 13 7
> 13 6
> Netherlands 0 0 0 0 0 1 0 0 0 3 2
> 0 1
> Portugal 0 0 0 0 0 0 0 0 0 0 0
> 0 0
> Spain 0 0 0 0 0 0 0 0 0 0 0
> 0 0
> UK 0 0 0 0 0 0 3 2 0 2 3
> 1 2
> year
> name 1985 1986 1987 1988 1989 1990 1991 1992 1993
> Denmark 1 1 0 2 2 0 1 0 0
> France 1 2 2 3 6 3 3 1 2
> Germany 6 3 2 5 3 3 1 4 2
> Greece 3 4 9 6 6 5 5 1 1
> Ireland 1 0 1 3 2 0 3 2 0
> Italy 20 15 9 5 16 5 8 5 5
> Netherlands 4 0 2 1 4 1 3 1 3
> Portugal 0 0 0 0 0 1 0 1 0
> Spain 0 0 0 0 4 3 2 5 3
> UK 4 1 0 0 4 2 0 3 0
>
>
>
> THX,
>
>
> --
> Dominik Hattrup
>
> University of Mannheim
> Faculty of Social Sciences
> B.A. Political Science
>
>
>
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
More information about the R-help
mailing list