[R] spaghetti plots in R
uday
uday_143_4u at hotmail.com
Wed Apr 4 16:22:36 CEST 2012
I would like to plat some spaghetti plots from my data , ma data is as
follows
ak[1:3,]
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[,8] [,9]
[1,] 0.3211745 0.4132568 0.5649930 0.6920562 0.7760113 0.8118568 0.8609301
0.9088819 0.9326736
[2,] 0.3159234 0.4071270 0.5579212 0.6844584 0.7684690 0.8243702 0.8677043
0.8931288 0.9261926
[3,] 0.3075260 0.3993699 0.5493242 0.6765600 0.7614591 0.8127050 0.8537816
0.8884786 0.9343690
[,10] [,11] [,12]
[1,] 0.9605178 1 1.003940
[2,] 0.9647617 1 1.012930
[3,] 0.9618874 1 1.007103
dim(ak[1:3,])
[1] 3 12
pre[1:3,]
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[,9] [,10]
[1,] 10.34615 52.02116 146.1736 243.2864 347.4150 431.6711 521.4271 629.0045
729.9594 827.8628
[2,] 10.34615 52.02539 146.3670 244.3871 350.1785 454.6706 546.5499 638.3344
741.9849 842.5700
[3,] 10.34615 52.02754 146.4656 244.9480 351.5865 457.1768 550.1341 643.0880
748.1114 850.0670
[,11] [,12]
[1,] 921.5508 956.4445
[2,] 953.9648 995.8201
[3,] 951.6384 987.9105
dim(pre) 3 12
I have tried
plot(ak[1,],pre[1,],type="l")
lines(ak[2,],pre[2,],type="l",col="red")
but it only works for few data, but I have very big list and data is in
matrix format. I would be very glad if someone can help me to fix this
issue.
--
View this message in context: http://r.789695.n4.nabble.com/spaghetti-plots-in-R-tp4532021p4532021.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list