gmane.comp.lang.r.general.mbox
来自「R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面」· MBOX 代码 · 共 1,572 行 · 第 1/5 页
MBOX
1,572 行
> >> pass on the value logY to my custom panel.curve function. How do I do> >> that?> >> I think that the value of logY should go into xyplot that should pass it> >> on> >> to the panel function and then to the panel.curve function.> >> > It probably should, but doesn't.> >> > -Deepayan______________________________________________R-help@stat.math.ethz.ch mailing listhttps://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.From news@gmane.org Tue Mar 04 03:33:20 2003From: RMan54 <RMan54@cox.net>Subject: Re: xyplot: logarithmic y-axisDate: Fri, 15 Dec 2006 15:16:38 -0800 (PST)Lines: 100Message-ID: <7901073.post@talk.nabble.com>References: <7900202.post@talk.nabble.com> <eb555e660612151426s30981295r30e3d3ee123f412f@mail.gmail.com> <7900634.post@talk.nabble.com> <eb555e660612151457u5858ccdag9f344000e833a5ab@mail.gmail.com>Mime-Version: 1.0Content-Type: text/plain; charset="us-ascii"Content-Transfer-Encoding: 7bitX-From: r-help-bounces@stat.math.ethz.ch Sat Dec 16 00:21:18 2006Return-path: <r-help-bounces@stat.math.ethz.ch>Envelope-to: gclrg-r-help@gmane.orgReceived: from hypatia.math.ethz.ch ([129.132.145.15]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvMMf-0000nO-AX for gclrg-r-help@gmane.org; Sat, 16 Dec 2006 00:21:17 +0100Received: from hypatia.math.ethz.ch (hypatia [129.132.145.15]) by hypatia.math.ethz.ch (8.13.6/8.13.6) with ESMTP id kBFNGsuT017555; Sat, 16 Dec 2006 00:19:58 +0100X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on hypatia.math.ethz.chX-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL, BAYES_40, SPF_HELO_PASS autolearn=no version=3.1.7Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by hypatia.math.ethz.ch (8.13.6/8.13.6) with ESMTP id kBFNGcbw017499 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for <r-help@stat.math.ethz.ch>; Sat, 16 Dec 2006 00:16:40 +0100Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GvMIA-0006xn-Cg for r-help@stat.math.ethz.ch; Fri, 15 Dec 2006 15:16:38 -0800To: r-help@stat.math.ethz.chIn-Reply-To: <eb555e660612151457u5858ccdag9f344000e833a5ab@mail.gmail.com>X-Nabble-From: RMan54@cox.netX-Virus-Scanned: by amavisd-new at stat.math.ethz.chX-BeenThere: r-help@stat.math.ethz.chX-Mailman-Version: 2.1.9Precedence: listList-Id: "Main R Mailing List: Primary help" <r-help.stat.math.ethz.ch>List-Unsubscribe: <https://stat.ethz.ch/mailman/listinfo/r-help>, <mailto:r-help-request@stat.math.ethz.ch?subject=unsubscribe>List-Archive: <https://stat.ethz.ch/pipermail/r-help>List-Post: <mailto:r-help@stat.math.ethz.ch>List-Help: <mailto:r-help-request@stat.math.ethz.ch?subject=help>List-Subscribe: <https://stat.ethz.ch/mailman/listinfo/r-help>, <mailto:r-help-request@stat.math.ethz.ch?subject=subscribe>Sender: r-help-bounces@stat.math.ethz.chErrors-To: r-help-bounces@stat.math.ethz.chArchived-At: <http://permalink.gmane.org/gmane.comp.lang.r.general/75850>I added logY as the last argument to xyplot and in my curve function. I gotthe following error message:Error in myCurve(x) : argument "log" is missing, with no defaultmyCurve <-function(x, log) { f <- ... # calculate curve here if (log==T) f <- log10(f) return(f)}logY=Txyplot(Conc ~ Time | Subj, groups=Dose, data = mydata, scales=list(x=list(at=seq(0,96,24)), y=list(log=logY)), panel = function(...) { panel.abline(h=c(0, 50, 100, 150, 200, 250) , v=c(0,24,48,72,96), col.line="gray") panel.xyplot(...) panel.curve(myCurve, from=0, to=96, n=300, ..., log=logY) }, logY )Deepayan Sarkar wrote:> > On 12/15/06, RMan54 <RMan54@cox.net> wrote:>>>> Please take no offence since none was intended. What I meant is that it>> should be simple for me to know how to do this but it isn't because of my>> inexperience. I think that the lattice package is great.> > I didn't mean to suggest that I was offended. I only agreed with you> that it would be nice if there were a way of knowing inside the panel> function whether a log scale is being used, and informing you that> there isn't.> >> However, how can I pass on my own varaibles through xyplot?> > Any arguments not recognized by xyplot will be passed to the panel> function.> > -Deepayan> >>>> Thanks, -Rene>>>>>> Deepayan Sarkar wrote:>> >>> > On 12/15/06, RMan54 <RMan54@cox.net> wrote:>> >>>> >> This should be simple but I am struggling. I like to easily switch in>> >> xyplot>> >> between a linear or logarithmic y-axis by setting a logical flag logY>> to>> >> False or True. This switch changes the scales argument of xyplot. I>> found>> >> out that the original two-dimentional data (Conc vs Time in my case)>> are>> >> converted to log10(Conc) if log=TRUE in scales, but it appears that>> >> functions like panel.curve need to provide the y values in log10 form>> (if>> >> there is an automatic method, I would like to know). I therefore like>> to>> >> pass on the value logY to my custom panel.curve function. How do I do>> >> that?>> >> I think that the value of logY should go into xyplot that should pass>> it>> >> on>> >> to the panel function and then to the panel.curve function.>> >>> > It probably should, but doesn't.>> >>> > -Deepayan> > ______________________________________________> R-help@stat.math.ethz.ch mailing list> https://stat.ethz.ch/mailman/listinfo/r-help> PLEASE do read the posting guide> http://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.> > -- View this message in context: http://www.nabble.com/xyplot%3A-logarithmic-y-axis-tf2829755.html#a7901073Sent from the R help mailing list archive at Nabble.com.______________________________________________R-help@stat.math.ethz.ch mailing listhttps://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.From news@gmane.org Tue Mar 04 03:33:20 2003From: "R. Villegas" <villegas.ro@gmail.com>Subject: Re: ks.test "greater" and "less"Date: Sat, 16 Dec 2006 00:27:16 +0100Lines: 24Message-ID: <29cf68350612151527t2d7fd565k10242d7064b38f47@mail.gmail.com>References: <45828599.2020504@web.de>Mime-Version: 1.0Content-Type: text/plain; charset="utf-8"Content-Transfer-Encoding: base64Cc: R-help <r-help@stat.math.ethz.ch>X-From: r-help-bounces@stat.math.ethz.ch Sat Dec 16 00:29:54 2006Return-path: <r-help-bounces@stat.math.ethz.ch>Envelope-to: gclrg-r-help@gmane.orgReceived: from hypatia.math.ethz.ch ([129.132.145.15]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvMUu-0001iW-9s for gclrg-r-help@gmane.org; Sat, 16 Dec 2006 00:29:48 +0100Received: from hypatia.math.ethz.ch (hypatia [129.132.145.15]) by hypatia.math.ethz.ch (8.13.6/8.13.6) with ESMTP id kBFNRZUk020539; Sat, 16 Dec 2006 00:27:57 +0100X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on hypatia.math.ethz.chX-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_20 autolearn=no version=3.1.7Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by hypatia.math.ethz.ch (8.13.6/8.13.6) with ESMTP id kBFNRHgb020455 for <r-help@stat.math.ethz.ch>; Sat, 16 Dec 2006 00:27:18 +0100Received: by ug-out-1314.google.com with SMTP id p37so872486ugc for <r-help@stat.math.ethz.ch>; Fri, 15 Dec 2006 15:27:17 -0800 (PST)Received: by 10.78.170.17 with SMTP id s17mr583400hue.1166225237174; Fri, 15 Dec 2006 15:27:17 -0800 (PST)Received: by 10.78.182.6 with HTTP; Fri, 15 Dec 2006 15:27:16 -0800 (PST)To: "Carmen Meier" <carmei3@web.de>In-Reply-To: <45828599.2020504@web.de>Content-Disposition: inlineX-Virus-Scanned: by amavisd-new at stat.math.ethz.chX-MIME-Autoconverted: from base64 to 8bit by hypatia.math.ethz.ch id kBFNRHgb020455X-BeenThere: r-help@stat.math.ethz.chX-Mailman-Version: 2.1.9Precedence: listList-Id: "Main R Mailing List: Primary help" <r-help.stat.math.ethz.ch>List-Unsubscribe: <https://stat.ethz.ch/mailman/listinfo/r-help>, <mailto:r-help-request@stat.math.ethz.ch?subject=unsubscribe>List-Archive: <https://stat.ethz.ch/pipermail/r-help>List-Post: <mailto:r-help@stat.math.ethz.ch>List-Help: <mailto:r-help-request@stat.math.ethz.ch?subject=help>List-Subscribe: <https://stat.ethz.ch/mailman/listinfo/r-help>, <mailto:r-help-request@stat.math.ethz.ch?subject=subscribe>Sender: r-help-bounces@stat.math.ethz.chErrors-To: r-help-bounces@stat.math.ethz.chArchived-At: <http://permalink.gmane.org/gmane.comp.lang.r.general/75851>MjAwNi8xMi8xNSwgQ2FybWVuIE1laWVyIDxjYXJtZWkzQHdlYi5kZT46Cj4gSGVsbG8gci1ncm91cAo+IEkgaGF2ZSBhIHF1ZXN0aW9uIHRvIHRoZSBrcy50ZXN0Lgo+IEkgd291bGQgZXhwZWN0IGRpZmZlcmVudCB2YWx1ZXMgZm9yIGxlc3MgYW5kIGdyZWF0ZXIgYmV0d2VlbiBkYXRhMSBhbmQKPiBkYXRhMi4KPiBEb2VzIGFueWJvZHkgY291bGQgZXhwbGFpbiAgbXkgcG9pbnQgb2YgbWlzdW5kZXJzdGFuZGluZyB0aGUgZnVuY3Rpb24/Cj4KPiBkYXRhMTwtYyg4LDEyLDQzLDcwKQo+IGRhdGEyPC0gYyg3MCw0MywxMiw4KQo+Cj4ga3MudGVzdChkYXRhMSwicG5vcm0iKQo+IGtzLnRlc3QoZGF0YTEsInBub3JtIixhbHRlcm5hdGl2ZSA9Imxlc3MiKSAgICAjZXhwZWN0ZWQgPCAwLjAwMQo+IGtzLnRlc3QoZGF0YTEsInBub3JtIixhbHRlcm5hdGl2ZSA9ImdyZWF0ZXIiKSAjZXhwZWN0ZWQgPTEKPgo+Cj4ga3MudGVzdChkYXRhMiwicG5vcm0iKQo+IGtzLnRlc3QoZGF0YTIsInBub3JtIixhbHRlcm5hdGl2ZSA9Imxlc3MiKSAgI2V4cGVjdGVkID0xCj4ga3MudGVzdChkYXRhMiwicG5vcm0iLGFsdGVybmF0aXZlID0iZ3JlYXRlciIpICNleHBlY3RlZCA8IDAuMDAxCj4KPgo+IFdpdGggcmVnYXJkcyBDYXJtZW4KPgo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPiBSLWhlbHBAc3RhdC5tYXRoLmV0aHouY2ggbWFpbGluZyBsaXN0Cj4gaHR0cHM6Ly9zdGF0LmV0aHouY2gvbWFpbG1hbi9saXN0aW5mby9yLWhlbHAKPiBQTEVBU0UgZG8gcmVhZCB0aGUgcG9zdGluZyBndWlkZSBodHRwOi8vd3d3LlItcHJvamVjdC5vcmcvcG9zdGluZy1ndWlkZS5odG1sCj4gYW5kIHByb3ZpZGUgY29tbWVudGVkLCBtaW5pbWFsLCBzZWxmLWNvbnRhaW5lZCwgcmVwcm9kdWNpYmxlIGNvZGUuCj4KClBvc3NpYmxlICB5b3UgYXJlIHVuYWJsZSB0byB1c2UgdGhlIEtvbG1vZ29yb3bigJNTbWlybm92IHRlc3QgZ2l2ZW4gdGhhdAp0aGUgc2FtcGxlIHNpemUgaXMgc21hbGwuCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fClItaGVscEBzdGF0Lm1hdGguZXRoei5jaCBtYWlsaW5nIGxpc3QKaHR0cHM6Ly9zdGF0LmV0aHouY2gvbWFpbG1hbi9saXN0aW5mby9yLWhlbHAKUExFQVNFIGRvIHJlYWQgdGhlIHBvc3RpbmcgZ3VpZGUgaHR0cDovL3d3dy5SLXByb2plY3Qub3JnL3Bvc3RpbmctZ3VpZGUuaHRtbAphbmQgcHJvdmlkZSBjb21tZW50ZWQsIG1pbmltYWwsIHNlbGYtY29udGFpbmVkLCByZXByb2R1Y2libGUgY29kZS4KFrom news@gmane.org Tue Mar 04 03:33:20 2003From: "Deepayan Sarkar" <deepayan.sarkar@gmail.com>Subject: Re: xyplot: logarithmic y-axisDate: Fri, 15 Dec 2006 15:43:57 -0800Lines: 48Message-ID: <eb555e660612151543h5ff09735x4f5e0fe7e28c6f9f@mail.gmail.com>References: <7900202.post@talk.nabble.com> <eb555e660612151426s30981295r30e3d3ee123f412f@mail.gmail.com> <7900634.post@talk.nabble.com> <eb555e660612151457u5858ccdag9f344000e833a5ab@mail.gmail.com> <7901073.post@talk.nabble.com>Mime-Version: 1.0Content-Type: text/plain; charset="us-ascii"Content-Transfer-Encoding: 7bitCc: r-help@stat.math.ethz.chX-From: r-help-bounces@stat.math.ethz.ch Sat Dec 16 00:44:41 2006Return-path: <r-help-bounces@stat.math.ethz.ch>Envelope-to: gclrg-r-help@gmane.orgReceived: from hypatia.math.ethz.ch ([129.132.145.15]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvMjH-00039s-5x for gclrg-r-help@gmane.org; Sat, 16 Dec 2006 00:44:39 +0100Received: from hypatia.math.ethz.ch (hypatia [129.132.145.15]) by hypatia.math.ethz.ch (8.13.6/8.13.6) with ESMTP id kBFNiBgc025899; Sat, 16 Dec 2006 00:44:29 +0100X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on hypatia.math.ethz.chX-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=AWL, BAYES_50 autolearn=no version=3.1.7Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by hypatia.math.ethz.ch (8.13.6/8.13.6) with ESMTP id kBFNhv37025478 for <r-help@stat.math.ethz.ch>; Sat, 16 Dec 2006 00:43:58 +0100Received: by nz-out-0506.google.com with SMTP id i11so475322nzh for <r-help@stat.math.ethz.ch>; Fri, 15 Dec 2006 15:43:57 -0800 (PST)Received: by 10.65.93.18 with SMTP id v18mr1924489qbl.1166226237131; Fri, 15 Dec 2006 15:43:57 -0800 (PST)Received: by 10.65.97.6 with HTTP; Fri, 15 Dec 2006 15:43:57 -0800 (PST)To: RMan54 <RMan54@cox.net>In-Reply-To: <7901073.post@talk.nabble.com>Content-Disposition: inlineX-Virus-Scanned: by amavisd-new at stat.math.ethz.chX-BeenThere: r-help@stat.math.ethz.chX-Mailman-Version: 2.1.9Precedence: listList-Id: "Main R Mailing List: Primary help" <r-help.stat.math.ethz.ch>List-Unsubscribe: <https://stat.ethz.ch/mailman/listinfo/r-help>, <mailto:r-help-request@stat.math.ethz.ch?subject=unsubscribe>List-Archive: <https://stat.ethz.ch/pipermail/r-help>List-Post: <mailto:r-help@stat.math.ethz.ch>List-Help: <mailto:r-help-request@stat.math.ethz.ch?subject=help>List-Subscribe: <https://stat.ethz.ch/mailman/listinfo/r-help>, <mailto:r-help-request@stat.math.ethz.ch?subject=subscribe>Sender: r-help-bounces@stat.math.ethz.chErrors-To: r-help-bounces@stat.math.ethz.chArchived-At: <http://permalink.gmane.org/gmane.comp.lang.r.general/75852>On 12/15/06, RMan54 <RMan54@cox.net> wrote:>> I added logY as the last argument to xyplot and in my curve function. I got> the following error message:>> Error in myCurve(x) : argument "log" is missing, with no default
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?