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
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
) (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
) (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
)
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
) (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
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)
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
8 matches
Mail list logo