[R] Create Matrix of 2 Dim from two vectors

2010-11-08 Thread abotaha
Hello, I have two data. x-c(1, 2, 3) y-c(4,5,6) How do i create matrix of 3 by 3 from this two, such that (1,4) (1,5) (1,6) (2,4) (2,5) (2,6) (3,4) (3,5) (3,6) I tried some thing like this: xy - as.data.frame(c(0,0,0), dim=c(3,3)) for(i in 1:3) for(j in 1:3)

Re: [R] Create Matrix of 2 Dim from two vectors

2010-11-08 Thread abotaha
Thanks a lot guys...all of your solution are useful, and good. once again thanks. -- View this message in context: http://r.789695.n4.nabble.com/Create-Matrix-of-2-Dim-from-two-vectors-tp3031718p3031797.html Sent from the R help mailing list archive at Nabble.com.

[R] Interpolation missing data

2010-09-08 Thread abotaha
Hi R experts, I have set of data consists of 50 data. some of them are missing. I would need a function in R that can estimate missing data using interpolation methods. If you know this kind of function, write me the name of the function and its library. Thanks very much in advance! abotaha

Re: [R] Plot bar lines like excel

2010-08-25 Thread abotaha
Thanks a lot for the nice explanation. however, you mention that it will be nicer if there is data. yes you are right it be very kind of you if you include a simple example. where my data are: x1-c(11.5,9.38,9.3,9.8,9,9.06,9.42,8.8,9.05,8.14,8.2,7.59,6.92,6.47,7.12,

Re: [R] Plot bar lines like excel

2010-08-25 Thread abotaha
Woow, it is amazing, thank you very much. yes i forget to attach the dates, however, the dates in my case is every 16 days. so how i can use 16 day interval instead of month in by option. cheers, -- View this message in context:

Re: [R] Plot bar lines like excel

2010-08-25 Thread abotaha
Great .. thanks for the to much help and i too appreciate hel p and explanation Cheers -- View this message in context: http://r.789695.n4.nabble.com/Plot-bar-lines-like-excel-tp2337089p2338158.html Sent from the R help mailing list archive at Nabble.com.

[R] Plot bar lines like excel

2010-08-24 Thread abotaha
Hello guys, I would to plot a bar line between to curves like in excel as shown in the following image. but i do not know how I can do that in R. http://r.789695.n4.nabble.com/file/n2337089/excel_Plot.png any help would appreciate. -- View this message in context:

[R] Error: evaluation nested too deeply

2010-08-12 Thread abotaha
Hi guys, I have a code in R and it was work well but when I decrease the epsilon value (indicated in the code) , then I am getting this error Error: evaluation nested too deeply: infinite recursion / options(expressions=)? any help please y = 6.8; w = 7.4; z = 5.7; muy = 7; muw = 7; muz =

[R] 3D Surface plot

2010-05-01 Thread abotaha
Dear All, I want to create a surface plot from the data. My data set is consists of x, y and z data. I plotted in very easy way by Excel worksheet as shown in the attached picture. I did some steps in R, but I cannot have the same plot as in Excel worksheet's figure. the R code is x -

[R] Overlap plot

2010-02-27 Thread abotaha
Hello, I have plot in R (which is curve during time series) and it is working well. i want to add a circle symbol to one place within the plot but i do not know how to do that? I used matplot() because i have many data in the plot. any help please, cheers -- View this message in

Re: [R] Overlap plot

2010-02-27 Thread abotaha
Thank you for this simple help. It is sufficient for my plot. cheers. -- View this message in context: http://n4.nabble.com/Overlap-plot-tp1571803p1572061.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] x-axis plot problem

2010-02-08 Thread abotaha
Thanks guys, it works now properly when I change axas=i to axat=n, but there is a space between the box from the left side (y-axis) and the beginning plotted curve. please could you tell me how avoid that. any suggestions thanks, -- View this message in context:

Re: [R] x-axis plot problem

2010-02-08 Thread abotaha
Many many thanks.it is working now very well. again thanks a lot. -- View this message in context: http://n4.nabble.com/x-axis-plot-problem-tp1472286p1473006.html Sent from the R help mailing list archive at Nabble.com. __

[R] x-axis plot problem

2010-02-07 Thread abotaha
Hi all, I tried to have plot of many vector in one plot and i have got a nice plot but i have problem with x-axis. I want to have month and year only(Jul.07 means July 2007) in x-axis without appearing other number behaind it. I would appercit any help. The R code: