[R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
Dear useRs, I have two column vectors of different lengths say x=1,2,3,4,5,6,7,8 and y=1,2,3,4,5. I wanted to plot them by using points() command over an already existed image but got an error, Error in xy.coords(x, y) : 'x' and 'y' lengths differ.What i actually wanted to do was to plot the

Re: [R] plotting vectors of different lengths

2014-03-22 Thread Jorge I Velez
Hi Eliza, Perhaps the following? matpoints(t(dat), type = 'l') HTH, Jorge.- On Sat, Mar 22, 2014 at 10:18 PM, eliza botto eliza_bo...@hotmail.comwrote: Dear useRs, I have two column vectors of different lengths say x=1,2,3,4,5,6,7,8 and y=1,2,3,4,5. I wanted to plot them by using

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
) (3,4) (3,5) (3,6) (3,7) (3,8) 4 (4,1) (4,2) (4,3) (4,4) (4,5) (4,6) (4,7) (4,8) 5 (5,1) (5,2) (5,3) (5,4) (5,5) (5,6) (5,7) (5,8) Thnakyou very in advance Eliza From: jorgeivanve...@gmail.com Date: Sat, 22 Mar 2014 22:26:01 +1100 Subject: Re: [R] plotting vectors of different lengths

Re: [R] plotting vectors of different lengths

2014-03-22 Thread Jorge I Velez
) (3,5) (3,6) (3,7) (3,8) 4 (4,1) (4,2) (4,3) (4,4) (4,5) (4,6) (4,7) (4,8) 5 (5,1) (5,2) (5,3) (5,4) (5,5) (5,6) (5,7) (5,8) Thnakyou very in advance Eliza From: jorgeivanve...@gmail.com Date: Sat, 22 Mar 2014 22:26:01 +1100 Subject: Re: [R] plotting vectors of different lengths

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
) library(maps) library(mapdata) map('worldHires') matpoints(t(dat), type = 'l') Thanks, Eliza From: jorgeivanve...@gmail.com Date: Sat, 22 Mar 2014 22:44:39 +1100 Subject: Re: [R] plotting vectors of different lengths To: eliza_bo...@hotmail.com CC: r-help@r-project.org You are welcome, Eliza

Re: [R] plotting vectors of different lengths

2014-03-22 Thread arun
) (3,7) (3,8) 4  (4,1) (4,2) (4,3) (4,4) (4,5) (4,6) (4,7) (4,8) 5  (5,1) (5,2) (5,3) (5,4) (5,5) (5,6) (5,7) (5,8) Thnakyou very in advance Eliza From: jorgeivanve...@gmail.com Date: Sat, 22 Mar 2014 22:26:01 +1100 Subject: Re: [R] plotting vectors of different lengths To: eliza_bo

Re: [R] plotting vectors of different lengths

2014-03-22 Thread Bert Gunter
On Sat, Mar 22, 2014 at 7:10 AM, arun smartpink...@yahoo.com wrote: [ No no no. She (apparently) says she wants to plot a numeric grid given the x and y coordinates of the grid, not create a character matrix of strings representing the ordered pairs. set.seed(1234) x - runif(6) y - runif(5)

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
Dear Bert and Arun, Thankyou very much for your help. I am really obliged. :D Eliza Date: Sat, 22 Mar 2014 08:17:31 -0700 Subject: Re: [R] plotting vectors of different lengths From: gunter.ber...@gene.com To: smartpink...@yahoo.com; jorgeivanve...@gmail.com; eliza_bo...@hotmail.com CC: r