[R] plot.stepfun xlim

2008-12-31 Thread m.u.r.
i've noticed a strange problem when plotting a stepfun. according to the documentation, the xlim parameter should bound the range of the function being plotted, and is returned as the extreme two values (i.e. first and last) in the vector t from the plot.stepfun call. instead, it plots beyond

Re: [R] issue with encoding in R-2.8.1 invalid multibyte character

2008-12-31 Thread Prof Brian Ripley
On Wed, 31 Dec 2008, Peter Dalgaard wrote: Prof Brian Ripley wrote: Well, we don't see what you see. but if ? was hex a7, the message is entirely correct. If you want to enter that, use \xa7. We see different things. Right, and my point is that we do not know what he actually sees. I see

Re: [R] dudas sobre función algoritmo Chaid con R

2008-12-31 Thread Juan Antonio Gil Pascual
Charles C. Berry escribió: See CRAN -- Task Views -- Machine Learning. i.e. http://cran.r-project.org/web/views/MachineLearning.html Particularly, 'Recursive Partitioning'. HTH, Chuck On Tue, 30 Dec 2008, Juan Antonio Gil Pascual wrote: Michael thank you very much, what about the

Re: [R] issue with encoding in R-2.8.1 invalid multibyte character

2008-12-31 Thread Wijffels, Jan
Yes, it was the section sign (double s) symbol that I was trying to print connecting from a Windows machine with Latin1 encoding to a UTF-8 Linux machine. I changed the translation behaviour in my Putty SSH from Latin1 to UTF-8 and now the interactive R programming works. My scripts which I run

Re: [R] issue with encoding in R-2.8.1 invalid multibyte character

2008-12-31 Thread Prof Brian Ripley
On Wed, 31 Dec 2008, Wijffels, Jan wrote: Yes, it was the section sign (double s) symbol that I was trying to print connecting from a Windows machine with Latin1 encoding to a UTF-8 Linux machine. I changed the translation behaviour in my Putty SSH from Latin1 to UTF-8 and now the interactive R

Re: [R] plot.stepfun xlim

2008-12-31 Thread Prof Brian Ripley
On Tue, 30 Dec 2008, m.u.r. wrote: i've noticed a strange problem when plotting a stepfun. according to the documentation, the xlim parameter should bound the range of the function being plotted, and is returned as the extreme Wheere does it say that? The help actually says xlim,ylim:

Re: [R] WinBUGS posterior samples (via R2WinBUGS)?

2008-12-31 Thread Uwe Ligges
3 comments: 1. Quoting the last lines of this message: PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Otherwise we cannot help anyway. 2. This is not the BUGS mailing list. 3. I do prefer BRugs,

Re: [R] issue with encoding in R-2.8.1 invalid multibyte character

2008-12-31 Thread Wijffels, Jan
On Wed, 31 Dec 2008, Wijffels, Jan wrote: Yes, it was the section sign (double s) symbol that I was trying to print connecting from a Windows machine with Latin1 encoding to a UTF-8 Linux machine. I changed the translation behaviour in my Putty SSH from Latin1 to UTF-8 and now the

Re: [R] WinBUGS posterior samples (via R2WinBUGS)?

2008-12-31 Thread Dieter Menne
Uwe Ligges ligges at statistik.tu-dortmund.de writes: 3. I do prefer BRugs, the R package that is based on OpenBUGS, because it is closer to BUGS, more flexible, sometimes easier to debug, Which I strongly second, not only because of the author. Dieter

Re: [R] issue with encoding in R-2.8.1 invalid multibyte character

2008-12-31 Thread Peter Dalgaard
Wijffels, Jan wrote: ... So this means for me I need to change the scripts I develop in Latin1 on Windows to UTF-8 before I upload them to our server. Or, as I suggested below, run the R session on the server in Latin1. % LC_ALL=nl_BE R (guessing, or use en_US) should do it. Even

[R] Paste in a FOR loop

2008-12-31 Thread Michael Pearmain
Hi All, I've been having a little trouble using R2HTML and a loop, but can't figure out where the problem lies, any hints gratefully received. My code at the minute, (Which does work) is in the following: library(R2HTML) HTMLStart(outdir =

Re: [R] Execution of a .sce file through R

2008-12-31 Thread baptiste auguie
That's really a scilab question, nothing to do with R as far as I can see. Moreover, you haven't provided any of the information requested in the posting guide (OS, example, ...). i'm guessing that something along those lines should work, system(scilab -nw -f yourscript.sce) that is,

Re: [R] Chinese characters encoding problem with XML

2008-12-31 Thread Wind2
Problems focused on XML methods. xml is OK. And the heading of xml as following: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; htmlheadmeta http-equiv=Content-Type content=text/html; charset=gb2312title深圳国投/title There is correct

Re: [R] Execution of a .sce file through R

2008-12-31 Thread Hans W. Borchers
ykank spicyankit4u at gmail.com writes: Dear R Users Does some has any idea about how to execute a scilab file(.sce file) from the Terminal in R. Any kind of guidance would be highly welcomed and appreciated. Have you looked into your Scilab directory? In mine -- under Windows XP

Re: [R] WinBUGS posterior samples (via R2WinBUGS)?

2008-12-31 Thread Dieter Menne
Ben Bolker bolker at ufl.edu writes: On the other hand, it doesn't run under Linux (so far, as far I know). JAGS does (and R2jags provides an almost identical interface as R2WinBUGS) but is generally considerably slower than WinBUGS ... Yes, JAGS would be nice, but I still have problems

[R] Kernlab:Relevance Vector Machine Help

2008-12-31 Thread Gabriel Ibarra
--- El mié, 31/12/08, Gabriel Ibarra zack...@yahoo.es escribió: De: Gabriel Ibarra zack...@yahoo.es Asunto: RVM help Para: r-help@r-project.org Fecha: miércoles, 31 diciembre, 2008 3:03 Hello:   I would need some help on the use of RVM in the kernlab package. Questions: 1. Is there

Re: [R] function of mixture normal with covariates

2008-12-31 Thread Ben Bolker
Tal Julia Vider jtvider at 013.net writes: Hello, My name is Julia and I'm doing my phd on roc analysis. I'm trying to write a maximization function for the likelihood attached in the document. For some reason it's not working I keep getting \this error: You're missing a couple

Re: [R] Paste in a FOR loop

2008-12-31 Thread Stavros Macrakis
On Wed, Dec 31, 2008 at 6:12 AM, Michael Pearmain mpearm...@google.com wrote: summary(z.out.1) summary(s.out.1) hist(s.out.1$qi$ev)... This seemed a rather long winded way of doing things to me and a simple for loop should handle this, as later i want it to be dynamic for a number of groups

Re: [R] ggplot: adding layer using different data, groups and also controlling appearance

2008-12-31 Thread Juliet Hannah
This example works now, but does the legend need to be updated manually? After we specify the color change, it does not appear in the legend. Thanks! On Wed, Sep 24, 2008 at 8:03 PM, hadley wickham h.wick...@gmail.com wrote: On Wed, Sep 24, 2008 at 7:57 PM, rmail...@justemail.net wrote: I

[R] names help?

2008-12-31 Thread rkevinburton
I am unclear what names(x) - does? On the outset it seems relatively clear. But what if there are already names? What if there are already names on the object and they are in a different order than specified in the names on the right hand side? I tried it and it just replaces what was there

Re: [R] plot.stepfun xlim

2008-12-31 Thread Stavros Macrakis
On Tue, 30 Dec 2008, m.u.r. wrote: according to the documentation, the xlim parameter should bound the range of the function being plotted, and is returned as the extreme On Wed, Dec 31, 2008 at 4:18 AM, Prof Brian Ripley rip...@stats.ox.ac.uk replied: Wheere does it say that? True, it

[R] Package installation

2008-12-31 Thread jianying_li
Dear all, I tried to install bioconductor package using biocLite(). I got warning that c:/program file/R../library is not writable. In any rate, after the downloading/installing, I looked for packages like affy gcrma etc. but I did not seem them in the library folder. However, when I try to

[R] finding yap.exe with Sweave

2008-12-31 Thread Felipe Carrillo
Dear all: Just to make sure I am on the same page as everyone else. I just got a new computer and had to reinstall MikTex and of course R and Tinn-R. In order to be able to generate PDF's with Sweave I had to install notepad++ to tell Sweave where Latex.exe and yap.exe where located under

[R] RVM help

2008-12-31 Thread Gabriel Ibarra
Hello:   I would need some help on the use of RVM in the kernlab package. Questions: 1. Is there an optimal ratio between available number of cases and number of vectors? 2. Does something like overfitting exist? If so how can be detected/avoided? 3. The RVM model obtained is a S4 object. How

[R] Problem with package SNOW on MacOS X 10.5.5

2008-12-31 Thread Greg Riddick
Hello All, I can run the lower level functions OK, but many of the higher level (eg. parSApply) functions are generating errors. When running the example (from the snow help docs) for parApply on MacOSX 10.5.5, I get the following error: cl - makeSOCKcluster(c(localhost,localhost))

[R] Plotmath with values?

2008-12-31 Thread Mike Prager
I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for plotmath has an example, which after repeated reading, I find baffling. Likewise, I have read the help file for substitute (wqhich seems to be needed) without ever understanding what it does,

[R] Off-topic -- an eye on a stats presentation for clinicians?

2008-12-31 Thread Mitchell Maltenfort
I've got a 20 slide Powerpoint set up against the expected day someone says Mitch, could you talk for a short while to the residents on how to use statistics? It looks good at this end, but I'd love to get at least one more pair of eyes on it. Any volunteers? -- Due to the recession, requests

Re: [R] plot.stepfun xlim

2008-12-31 Thread m.u.r.
I suppose to be more clear, what I mean is that I was hoping to find upper/lower bounding parameter/rule, similar to rule = 1 in the approxfun command (which returns NA for any specified x-value outside the defined domain). Actually, that's exactly what I would like: a stepfun function that has a

Re: [R] Randomly remove condition-selected rows from a matrix

2008-12-31 Thread Guillaume Chapron
I believe this does what you want: m[-sample(which(m[,1]8 m[,2]12),2),] Analysis: Get a boolean vector of rows fitting criteria: m[,1]8 m[,2]12 What are their indexes? which(...) Choose two among those indexes: sample(...,2) Thanks, but this does not seem to always work.

Re: [R] ggplot: adding layer using different data, groups and also controlling appearance

2008-12-31 Thread Juliet Hannah
foo - data.frame ( x = 1:4, y = 4:1 , membership = c( A, A, B, B ) ) bar - data.frame ( x = 1:4 + 1 , y = 4:1 + 1, membership = rep ( C, 4 ) ) foo.gg - ggplot ( mapping = aes ( x = x, y = y , colour = membership ) ) foo.gg - foo.gg + geom_point(data = foo) booboo.gg - foo.gg + geom_point ( data

Re: [R] Plotmath with values?

2008-12-31 Thread Gabor Grothendieck
Try: aa - 22 plot(1, main = bquote(a == .(aa))) On Wed, Dec 31, 2008 at 11:47 AM, Mike Prager mike.pra...@noaa.gov wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for plotmath has an example, which after repeated reading, I find

Re: [R] Plotmath with values?

2008-12-31 Thread Charles C. Berry
On Wed, 31 Dec 2008, Mike Prager wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for plotmath has an example, which after repeated reading, I find baffling. Likewise, I have read the help file for substitute (wqhich seems to be

[R] flexclust queries

2008-12-31 Thread Midhat Ali
Hi 1. How do I get the outliers using qtclust. Right now it gives me the centroids and sizes of the clusters with size2 2. How do i get th exact radius of each cluster 3. What is the cluster attribute of the qtclust output (as seen through the attributes function) Regards Midhat

Re: [R] Randomly remove condition-selected rows from a matrix

2008-12-31 Thread Charles C. Berry
On Wed, 31 Dec 2008, Guillaume Chapron wrote: I believe this does what you want: m[-sample(which(m[,1]8 m[,2]12),2),] Analysis: Get a boolean vector of rows fitting criteria: m[,1]8 m[,2]12 What are their indexes? which(...) Choose two among those indexes: sample(...,2)

Re: [R] Plotmath with values?

2008-12-31 Thread Mike Prager
Charles C. Berry cbe...@tajo.ucsd.edu wrote: On Wed, 31 Dec 2008, Mike Prager wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. [...] plot(1:3, 1:3, main = bquote(a == .(aa))) You have to follow a couple of 'See Also' links

[R] Blank commands

2008-12-31 Thread Stavros Macrakis
On Tue, 30 Dec 2008, m.u.r. wrote in thread [R] plot.stepfun xlim: foo - stepfun(0.5, c(1, 0)); On Wed, Dec 31, 2008 at 4:18 AM, Prof Brian Ripley rip...@stats.ox.ac.uk replied: Why are you adding two blank commands via the semicolons? The R parser (2.8.0 Windows) does not seem to have the

Re: [R] names help?

2008-12-31 Thread Mike Prager
rkevinbur...@charter.net wrote: I am unclear what names(x) - does? On the outset it seems relatively clear. But what if there are already names? What if there are already names on the object and they are in a different order than specified in the names on the right hand side? I tried

Re: [R] Randomly remove condition-selected rows from a matrix

2008-12-31 Thread Stavros Macrakis
On Wed, Dec 31, 2008 at 12:44 PM, Guillaume Chapron carnivorescie...@gmail.com wrote: m[-sample(which(m[,1]8 m[,2]12),2),] Supposing I sample only one row among the ones matching my criteria. Then consider the case where there is just one row matching this criteria. Sure, there is no need to

Re: [R] Plotmath with values?

2008-12-31 Thread Sarah Goslee
Hi all, I hadn't used bquote before, so I gave this a try, only to encounter some odd behavior. R 2.8.0 on Fedora Core 8 (no RPM for 2.8.1 yet) vanilla session with no packages loaded (same behavior with my usual set of packages). On Wed, Dec 31, 2008 at 12:30 PM, Gabor Grothendieck

[R] Chance Magazine statistical graphics contest

2008-12-31 Thread David M Smith
In case you haven't seen the announcement on Andrew Gelman's statistics blog, Chance Magazine is holding a contest for the best visualization of Burtin's minimum inhibitory concentration data (to celebrate Burtin's 100th birthday). There's a link to the data and more information here:

Re: [R] Off-topic -- an eye on a stats presentation for clinicians?

2008-12-31 Thread Frank E Harrell Jr
Mitchell Maltenfort wrote: I've got a 20 slide Powerpoint set up against the expected day someone says Mitch, could you talk for a short while to the residents on how to use statistics? It looks good at this end, but I'd love to get at least one more pair of eyes on it. Any volunteers? I

[R] Instalación de WinEdt para R

2008-12-31 Thread Ale Garcia
Buenas tardes a todos: Primero que nada un saludo y desearles un feliz 2009. Escribo para que me asesoren con la instalación de un editor de R, estube siguiendo los pasos de un manual 1. Instalar R 2. Instalar WinEdt 5 (V. 5.2 o superior) 3. Instalar *SWinRegistry *(disponible en

Re: [R] Off-topic -- an eye on a stats presentation for clinicians?

2008-12-31 Thread Christopher W. Ryan
I'd love to take a look at it. I run journal club for our family practice residents and have to do this all the time (with more or less success; often less, it seems.) --Chris Christopher W. Ryan, MD SUNY Upstate Medical University Clinical Campus at Binghamton 40 Arch Street, Johnson City, NY

Re: [R] finding yap.exe with Sweave

2008-12-31 Thread Christopher W. Ryan
Hmm, it's been a while since I installed my R and Sweave, so I can't remember exactly how I did it, but I don't recall any particular difficulties. I think I had to copy the Sweave.sty to my localtexmf tree; I see it there now in C:\localtexmf\tex\latex\Sweave\Sweave.sty, in addition to having it

Re: [R] Plotmath with values?

2008-12-31 Thread Sarah Goslee
Sorry, apparently I can't type. Gabor's example and my test case should be identical, and weren't in my original email (now fixed). Sarah On Wed, Dec 31, 2008 at 1:42 PM, Sarah Goslee sarah.gos...@gmail.com wrote: Hi all, I hadn't used bquote before, so I gave this a try, only to encounter

[R] interpretation of conf.type in predict.Design {Design}

2008-12-31 Thread Dylan Beaudette
Hi, I am not quite sure how to interpret the differences in output when changing conf.type from the default mean to individual. Are these analogous to the differences between confidence and prediction intervals, as defined in predict.lm {stats} ? Thanks in advance. Dylan

[R] Suggestions for inputting a date via a dialog box?

2008-12-31 Thread Tubin
I've written a program which will be run by someone who isn't an R programmer and isn't all that computer-savvy in general. The user starts the program and is prompted to input various information such as location of data files. I've used the Sciviews svDialogs package for this with good

Re: [R] Suggestions for inputting a date via a dialog box?

2008-12-31 Thread Gabor Grothendieck
Rpad can offer the user a calendar from which they choose a date. From the main Rpad page try the Weather Explorer demo for an example: http://www.rpad.org On Wed, Dec 31, 2008 at 4:33 PM, Tubin sredmon...@yahoo.com wrote: I've written a program which will be run by someone who isn't an R

Re: [R] Suggestions for inputting a date via a dialog box?

2008-12-31 Thread Tubin
Hm. This looks like a fantastic package in general... but for this particular project I would rather not have to redo the entire program to run in Rpad. And it is not immediately evident that I could use Rpad just for the function of getting values for a couple of date variables... Or have I

Re: [R] adding date/time stamp

2008-12-31 Thread Sherri Heck
Hi Gabor- Your suggestion did work. However, maybe I should explain more what I am trying to do. Once I have dataset (z) condensed to an hourly format I will compare it with another dataset (lets call it y). Here's a tidbit of dataset y: doy yr mon day hr hgt1 hgt2 hgt3 co21 co22 co23

Re: [R] adding date/time stamp

2008-12-31 Thread Gabor Grothendieck
Try pasting this into R (the first portion is from your post): Lines - LST in mphDeg DegF DegF2%volts Deg mph2 w/m2 050901 0.007.8 216.9 45.1 -999 24.4 -999 -999 10.60.2 0509010005 0.008.6 206.6 45.1 -999 25.2 -999 -999 11.7

Re: [R] Suggestions for inputting a date via a dialog box?

2008-12-31 Thread Gabor Grothendieck
You would at least have to redo the front end. On Wed, Dec 31, 2008 at 5:11 PM, Tubin sredmon...@yahoo.com wrote: Hm. This looks like a fantastic package in general... but for this particular project I would rather not have to redo the entire program to run in Rpad. And it is not

Re: [R] Plotmath with values?

2008-12-31 Thread Paul Johnson
On Wed, Dec 31, 2008 at 10:47 AM, Mike Prager mike.pra...@noaa.gov wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for plotmath has an example, which after repeated reading, I find baffling. Likewise, I have read the help file for

[R] Lattice trellis.focus() with pdf

2008-12-31 Thread Chris Poliquin
Hi, I have a the code for a plot that works perfectly running in R and printing to a Quartz object but which doesn't work when I make the trellis device a pdf. The code is as follows: trellis.device(device=pdf, new=TRUE) trellis.par.set(my.theme()) dotplot(Y ~ X | C, groups=G,

Re: [R] Lattice trellis.focus() with pdf

2008-12-31 Thread Ben Bolker
Chris Poliquin poliquin at sas.upenn.edu writes: Hi, I have a the code for a plot that works perfectly running in R and printing to a Quartz object but which doesn't work when I make the trellis device a pdf. Is this FAQ 7.22

Re: [R] Lattice trellis.focus() with pdf

2008-12-31 Thread Deepayan Sarkar
On Wed, Dec 31, 2008 at 3:41 PM, Chris Poliquin poliq...@sas.upenn.edu wrote: Hi, I have a the code for a plot that works perfectly running in R and printing to a Quartz object but which doesn't work when I make the trellis device a pdf. The code is as follows:

Re: [R] Suggestions for inputting a date via a dialog box?

2008-12-31 Thread Barry Rowlingson
2008/12/31 Tubin sredmon...@yahoo.com: Hm. This looks like a fantastic package in general... but for this particular project I would rather not have to redo the entire program to run in Rpad. And it is not immediately evident that I could use Rpad just for the function of getting values for

Re: [R] Package installation

2008-12-31 Thread Carlos J. Gil Bellosta
Why don't you post your message in the Bioconductor list? People there will be able to help you better. Best regards, Carlos J. Gil Bellosta http://www.datanalytics.com On Wed, 2008-12-31 at 08:00 -0500, jianying...@med.unc.edu wrote: Dear all, I tried to install bioconductor package using

Re: [R] Downloading data from Economagic

2008-12-31 Thread RON70
Thanks Gabor for your reply. However it seems that data is not downloaded properly. Please take a look on downloaded data : tail(dat2, 20) GMT libor/day-ussnon 2008-11-25 0.93125 2008-11-26 0.98750 2008-11-28 NA 2008-12-01 1.08750 2008-12-02