s-news
[Top] [All Lists]

Re: A problem in plot(x,y)

To: "Dr.Takashi Kikuchi" <takashi.kikuchi@st-hughs.oxford.ac.uk>
Subject: Re: A problem in plot(x,y)
From: Sundar Dorai-Raj <sundar.dorai-raj@pdf.com>
Date: Mon, 20 Jan 2003 09:42:57 -0600
Cc: s-news@lists.biostat.wustl.edu
Organization: PDF Solutions, Inc.
References: <003401c2c077$fabeba80$761401a3@stats.ox.ac.uk>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
Hi,

Dr.Takashi Kikuchi wrote:
Dear S-Plus user

I experience en error message of "Error in plot.xy("plot"): Cannot find x and y in list" by a following codes. It may be a simple problem but I can not find the cause. I make a matrix with two columns corresponding to X and Y components and then extract each component to give it in a plot( X, Y) command. I think it must properly work. Please suggest the cause of the error. I use Windows2000 and S-Plus 2000 professonal version.

Best regrads,

Takashi Kikuchi



ans_ lapply(n.dat, l.ratio)

Here, ans is still a list and not a vector. Replace this line with sapply(n.dat, l.ratio).

Also the underscore (`_') as assignment has been deprecated in later versions of S-PLUS. Use `<-' (S-PLUS 2000) or `=' (S-PLUS 6) instead.

Regards,
Sundar



<Prev in Thread] Current Thread [Next in Thread>