Re: [R] Symbols to use in text

2008-11-14 Thread Martin Maechler
GF == Guillaume Filteau [EMAIL PROTECTED] on Thu, 13 Nov 2008 22:38:04 -0500 writes: GF Hello all, I'm trying to use text symbols in R, such are GF greek letters and mathematical operators. Do you know GF where I can find a list telling me how to use all those GF symbols?

Re: [R] 3D trajectory plot?

2008-11-14 Thread Yihui Xie
But it's not _smooth_ (as Chris asked for)... I also thought about the plot3d(), but I don't know how to smooth the 3D points. AFAIK spline functions only work for 2D cases in R? (Sorry I'm not familiar with splines) Regards, Yihui -- Yihui Xie [EMAIL PROTECTED] Phone: +86-(0)10-82509086 Fax:

Re: [R] R run under Emacs fatal errors halt execution

2008-11-14 Thread Prof Brian Ripley
1) Why make life difficult for yourself by not using ESS? You are running R in non-interactive mode because that's the way NTEmacs does things with a shell buffer. But people have been here before and we (the R developers) provided a solution years ago. There is a flag --ess that was added

Re: [R] savage scores

2008-11-14 Thread Jim Lemon
Júlia Teles wrote: Hi, I need to use the Savage scores to calculate a concordance coefficient. Does anybody know a package that computes these scores? Hi Julia, This method is described in: Iman, R.L. Conover, W.J. (1987) A measure of top-down correlation. Technometrics, 29(3):

Re: [R] radial.plot(plotrix) - plotting multiple polygons?

2008-11-14 Thread Jim Lemon
Jeremy Claisse wrote: Is it possible to plot multiple polygons on radial.plot(plotrix)? The new=FALSE argument (as used to add additional points or lines with the plot function to an existing plot) doesn't appear to work. I would like to overlay the outlines of multiple polygons of different

[R] licensing of R packages

2008-11-14 Thread Carlos Ungil
I know the standard answer to this kind of question is get legal advice from a lawyer, but I would like to hear the (hopefully informed) opinion of other people. I would say that, according to the FSF's interpretation of the GPL, any R code using GPL packages can be distributed legally only

Re: [R] how to plot a variable's histogram in the levels of a second variable(1)

2008-11-14 Thread Jim Lemon
Argyro Antaraki wrote: Goodmorning to everyone, I am trying to create a clustered barplot for the following 2 variables who have more cases but as an example i am giving you 10 items: sex socio-economic status 1    1 2    2 2    2 2    3 2    2 1    4 1   Â

Re: [R] licensing of R packages

2008-11-14 Thread Barry Rowlingson
2008/11/14 Duncan Murdoch [EMAIL PROTECTED]: Another question is if that strict interpretation of the GPL could be actually enforced, of course. Coming back to the GSL example, it seems a more flagrant violation of the license is already happening: http://www.numerit.com/gsl.htm (apparently

Re: [R] licensing of R packages

2008-11-14 Thread Duncan Murdoch
Barry Rowlingson wrote: 2008/11/14 Duncan Murdoch [EMAIL PROTECTED]: Another question is if that strict interpretation of the GPL could ... Actually Carlos asked that question, not me. Duncan Murdoch be actually enforced, of course. Coming back to the GSL example, it seems a

[R] igraph and tkgraph

2008-11-14 Thread Tom Backer Johnsen
I have a number of (directed) graphs based on social groups, where the members have expresed likes and dislikes in respect to the other members. tkgraph makes it simple to draw the graphs in a very pleasing way, but I would like to differentiate between positive and negative relations in the

Re: [R] licensing of R packages

2008-11-14 Thread Prof Brian Ripley
On Fri, 14 Nov 2008, Duncan Murdoch wrote: On 14/11/2008 4:42 AM, Carlos Ungil wrote: I know the standard answer to this kind of question is get legal advice from a lawyer, but I would like to hear the (hopefully informed) opinion of other people. I would say that, according to the FSF's

[R] arima.sim and first innovation: why nevertheless assume 0?

2008-11-14 Thread Matthieu Stigler
Hello I want to create a ARIMA(0,1,1) model giving my own innovations. I don't understand why even if I feed the arima.sim() function with innov and start.innov it takes a value of 0 for the first value. After that, I don't understand anymore how the series is constructed. set.seed(1)

Re: [R] licensing of R packages

2008-11-14 Thread Prof Brian Ripley
On Fri, 14 Nov 2008, Carlos Ungil wrote: [...] PS: By the way, I think FAQ 2.11 should be fixed: it states that R is released under the GNU General Public License (GPL), without specifying the version and linking to http://www.gnu.org/copyleft/gpl.html (GPLv3). However, the COPYING file in the

Re: [R] igraph and tkgraph

2008-11-14 Thread Gábor Csárdi
Tom, you mean 'tkplot' in the igraph package? Look at ?igraph.plotting on how to set up plotting parameters, e.g. if you want different line types for the positive/negative relations, then you can make use of the 'lty' parameter: A - matrix(sample(c(-1,0,1), 100, replace=TRUE), 10) g -

[R] Epicalc package

2008-11-14 Thread Luciano La Sala
Dear R-friends,   I am using the epicalc package and the manual by V. Chongsuvivatwong Analysis of epidemiological data using R and Epicalc to get the hang of some basic epidemiological analyses.      After running all the analyses of chapter 7, one is supposed to wrap it up by saving the data

Re: [R] Error in Quantile function

2008-11-14 Thread David Winsemius
On Nov 13, 2008, at 7:56 PM, irishmhw wrote: This is strange the first function that I am doing this for is saying in the typeof() is a double for some reason this is coming up as a list. Well, dataframes _are_ lists. str(spread) 'data.frame': 18 obs. of 1 variable: $

[R] R: choice of an HMM package

2008-11-14 Thread mauede
How can I access the depmix-intro vignette ? I have displayed thhttp://cat.inist.fr/?aModele=afficheNcpsidt=18787092e R vignette but depmix does no appear in the list. I do need to go throusg some worked out example to see if it can be used for the respiraton model. Why I get the following

Re: [R] Citing R in journal articles (or the failure to)

2008-11-14 Thread Heather Turner
Hi Achim, Thanks for pointing us to the code from the colorspace package - a good example of how to keep the citation information up-to-date automatically, something I had not considered... Heather -- Dr H Turner Senior Research Fellow Dept. of Statistics The University of Warwick Coventry CV4

Re: [R] Epicalc package

2008-11-14 Thread David Winsemius
On Nov 14, 2008, at 8:12 AM, Luciano La Sala wrote: Dear R-friends, I am using the epicalc package and the manual by V. Chongsuvivatwong Analysis of epidemiological data using R and Epicalc to get the hang of some basic epidemiological analyses. After running all the analyses of chapter

Re: [R] R: choice of an HMM package

2008-11-14 Thread Ingmar Visser
Maura, On Nov 14, 2008, at 2:40 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How can I access the depmix-intro vignette ? I have displayed thhttp://cat.inist.fr/? aModele=afficheNcpsidt=18787092e R vignette but depmix does no appear in the list. I do need to go throusg some worked out

[R] ggplot2 - two or more axis

2008-11-14 Thread David Hajage
Hello R users, I'm trying to learn how to make a plot with the amazing package ggplot2. I was wondering if it was possible to draw 2 (or more) x (or y) axis in the same graph. For example : - I want to show two informations at each x coordinate : a survival curve, I want to show the time (0, 12

Re: [R] Understanding glm family documentation: dev.resids

2008-11-14 Thread Heather Turner
Hi Peter, You are right, the dev.resids function does compute the square of the deviance residuals. Equivalently, dev.resids computes the d_i values, where d_i is the contribution of the $i$th observation to the deviance. The d_i can be defined directly and it is useful to have a function that

[R] Embed SQL queries in R?

2008-11-14 Thread Brigid Mooney
Hi All, Most of the work I am doing with R uses data which I am pulling from various SQL queries. To streamline the process even more, I was wondering if it was possible to embed SQL queries in R - that way avoiding the need to first get the data, then move to R to process it. I haven't found

Re: [R] Embed SQL queries in R?

2008-11-14 Thread Henrique Dallazuanna
See sqldf package. On Fri, Nov 14, 2008 at 1:12 PM, Brigid Mooney [EMAIL PROTECTED] wrote: Hi All, Most of the work I am doing with R uses data which I am pulling from various SQL queries. To streamline the process even more, I was wondering if it was possible to embed SQL queries in R -

Re: [R] Embed SQL queries in R?

2008-11-14 Thread Marc Schwartz
on 11/14/2008 09:12 AM Brigid Mooney wrote: Hi All, Most of the work I am doing with R uses data which I am pulling from various SQL queries. To streamline the process even more, I was wondering if it was possible to embed SQL queries in R - that way avoiding the need to first get the

[R] Problems when I try to download.file pdfs

2008-11-14 Thread Fernando Bizuet
Hello, I have been trying to download a pdf file but I only receive a blank sheets. I used the option internet2 in windows: Rgui.exe --internet2 but I recieved the same result. I use the next command: ulr2 - http://cran.r-project.org/doc/manuals/R-intro.pdf; download.file(url = ulr2,

Re: [R] igraph and tkgraph

2008-11-14 Thread Tom Backer Johnsen
Gabor: Actually, I meant a script GUI management of ugraph I managed to locate on the net. Disregarding that, thank you for the suggestions. igraph is definitly a non-trivial affair, with a lot of options and corresponding flexibility. I made some changes to what you wrote: A -

[R] Re : growing a list sequentially -- memory management

2008-11-14 Thread justin bem
you may try something like   myres -tapply(1:n, as.factor(1:n) gen) but n in very large in your case. you may create an external database and fill it connect to you database library(RODC) con-odbcConnect(...) st-seq(1,n, by=h)  # since n=157347, h can be set to 1573 to have around that

Re: [R] 3D trajectory plot?

2008-11-14 Thread Clint Bowman
In reading this thread the thought popped into my head. A smooth representation of the trajectory defined by the data in Chris's message from Wednesday is very similar to the guidance problem of a rocket. I believe that guidance engineers use Kalman filters to smooth out noisy data to generate

Re: [R] Embed SQL queries in R?

2008-11-14 Thread Gabor Grothendieck
Note that sqldf is primarily used for applying SQL against data frames and reading portions of large files into R. If the problem is to fetch data from an existing relational database then see RODBC, RJDBC or else DBI and one of the database-specific dbi packages such as RSQLite, RMySQL, etc.

Re: [R] R run under Emacs fatal errors halt execution

2008-11-14 Thread Stavros Macrakis
On Fri, Nov 14, 2008 at 3:37 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote: Why make life difficult for yourself by not using ESS? ... Frankly because I was intimidated by the 79-page (!!) manual. But you have shamed me into trying it. Installation was painless, and it seems to work as

[R] the number of the arguments of function is not sure

2008-11-14 Thread Chang Jia-Ming
I want to write a function to plot a picture for each inputting file like the following example. plot_test - function(f1,f2) { } However, -- Jia-Ming $BD%2HLC(B Jia-Ming Chang PhD Student Comparative Bioinformatics Group Bioinformatics and Genomics Programme

Re: [R] Error in Quantile function

2008-11-14 Thread irishmhw
That worked the charm, the line that you suggested age me a bad atomic number error but I just assigned the spread$bootdataframe.age to a new vector and it works great. Thanks you have been a great help. Best in all to you and yours. David Winsemius wrote: On Nov 13, 2008, at 7:56 PM,

Re: [R] licensing of R packages

2008-11-14 Thread Carlos Ungil
Prof Brian Ripley wrote: I'm not going into the original question except to point out that R is licensed under GPL-2 and the quote was from the GPL-3 FAQ. As FSF themselves insist, the two licences are incompatible. Let me quote the corresponding section in the GPL2 FAQ, then:

Re: [R] licensing of R packages

2008-11-14 Thread Berwin A Turlach
G'day Bazza, On Fri, 14 Nov 2008 11:07:11 + Barry Rowlingson [EMAIL PROTECTED] wrote: A strict interpretation of the GPL does not stop numerit from doing what they do. They do not distribute the GSL in any form. They tell you to go get the GSL dll from somewhere. This misconception

Re: [R] Problems when I try to download.file pdfs

2008-11-14 Thread Henrik Bengtsson
See ?download.file and argument 'mode'. You want to use mode=wb. To R-core: I've asked it before, isn't the most common use case to download files in 'binary' mode? I cannot even remember when I last wanted to transfer a file in 'text' mode. I vote for making mode=wb the default. /Henrik On

Re: [R] Error in Quantile function

2008-11-14 Thread David Winsemius
I should also point out that the .01 and .99 quantiles for a set that only has 18 elements are not particularly meaningful results. And even the .05 and .95 ones are pretty suspect. You may be getting numbers, but what do they mean? -- David Winsemius On Nov 14, 2008, at 9:33 AM,

[R] the number of the arguments of function is not sure

2008-11-14 Thread Chang Jia-Ming
I want to write a function to plot a picture for each inputting file like the following example. plot_test - function(f1,f2) { plot_file(f1); plot_file(f2); } However, the above function just could plot two input file. If the number of input file is not sure, it could be 2, 3 or more.

Re: [R] licensing of R packages

2008-11-14 Thread Duncan Murdoch
On 11/14/2008 11:01 AM, Berwin A Turlach wrote: G'day Bazza, On Fri, 14 Nov 2008 11:07:11 + Barry Rowlingson [EMAIL PROTECTED] wrote: A strict interpretation of the GPL does not stop numerit from doing what they do. They do not distribute the GSL in any form. They tell you to go get the

[R] How to enable R on-line search in HTML help

2008-11-14 Thread mauede
I use FireFox as my favourite web browser on my Mac OS/X 10.5 I double-checked that Java and Java scripts are enabled for FireFox. Nevertheless, I cannot use R on-line search help. I called Apple Tech Assistance but they do not support FireFox. We tried to set Saphari as the favourite browser

Re: [R] licensing of R packages

2008-11-14 Thread Berwin A Turlach
G'day Brian, On Fri, 14 Nov 2008 11:47:46 + (GMT) Prof Brian Ripley [EMAIL PROTECTED] wrote: On Fri, 14 Nov 2008, Duncan Murdoch wrote: I think they are talking about cases where the GPL libraries are compiled into the new product. Packages generally don't include copies of anything

Re: [R] Change Confidence Limits on a plot

2008-11-14 Thread Dieter Menne
Robin Clark wrote: mult-glht(lm(effectModel, data=statdata, na.action = na.omit), linfct=mcp(mainEffect=Means)) meanPlot - sub(.html, meanplot.jpg, htmlFile) jpeg(meanPlot) plot(mult, main=NA, xlab=unlist(strsplit(Args[4],~))[1]) This produces 95% CIs by

Re: [R] licensing of R packages

2008-11-14 Thread Carlos Ungil
Barry Rowlingson wrote: This misconception of the license terms comes about because of the use of the word 'use'. If I distribute a short C program that has a call in it to a function that has the same name as something in the GSL, does my C program use the GSL? No. Maybe it _mentions_ the

Re: [R] exponential of a matrix

2008-11-14 Thread Martin Maechler
PD == Peter Dalgaard [EMAIL PROTECTED] on Tue, 11 Nov 2008 23:46:49 +0100 writes: PD Terry Therneau wrote: Is the matrix exponential available in some package? PD Multiple. At least Matrix and msm. One of Jim Lindsey's PD too, but I think that's one of the more dubious

Re: [R] licensing of R packages

2008-11-14 Thread Peter Dalgaard
Berwin A Turlach wrote: IIRC, it was exactly this clause, that credits have to be kept, that made the original BSD license a GPL-incompatible Free Software License. I think not. Rather it was the advertising clause that 3. All advertising materials mentioning features or use of this

Re: [R] exponential of a matrix

2008-11-14 Thread Martin Maechler
DW == David Winsemius [EMAIL PROTECTED] on Tue, 11 Nov 2008 17:52:18 -0500 writes: DW In 2004 Martyn Plummer said that functionality was DW available in packages msm (as MatrixExp) and Lindsey's DW rmutils (as mexp) Well, thses two use one of the very dubious ways mentioned

Re: [R] licensing of R packages

2008-11-14 Thread Berwin A Turlach
G'day Duncan, On Fri, 14 Nov 2008 11:16:35 -0500 Duncan Murdoch [EMAIL PROTECTED] wrote: On 11/14/2008 11:01 AM, Berwin A Turlach wrote: But I remember that a situation as you describe was hotly debated on gnu.misc.discuss in the mid-90s; thus, I am talking obviously GPL 2. Unfortunately

Re: [R] the number of the arguments of function is not sure

2008-11-14 Thread Philipp Pagel
On Fri, Nov 14, 2008 at 05:05:32PM +0100, Chang Jia-Ming wrote: I want to write a function to plot a picture for each inputting file like the following example. plot_test - function(f1,f2) { plot_file(f1); plot_file(f2); } However, the above function just could plot two input file.

Re: [R] licensing of R packages

2008-11-14 Thread Duncan Murdoch
On 11/14/2008 12:07 PM, Berwin A Turlach wrote: G'day Duncan, On Fri, 14 Nov 2008 11:16:35 -0500 Duncan Murdoch [EMAIL PROTECTED] wrote: On 11/14/2008 11:01 AM, Berwin A Turlach wrote: But I remember that a situation as you describe was hotly debated on gnu.misc.discuss in the mid-90s;

Re: [R] How to enable R on-line search in HTML help

2008-11-14 Thread Prof Brian Ripley
First, there is a R-sig-mac list for Mac OS questions. On Fri, 14 Nov 2008, [EMAIL PROTECTED] wrote: I use FireFox as my favourite web browser on my Mac OS/X 10.5 Which version of Firefox? There is a known issue with all released versions = 3, discussed in the R-admin manual (and R has had

Re: [R] growing a list sequentially -- memory management

2008-11-14 Thread erwann rogard
Thank you all for your answers. I think I have enough to keep going: As pointed out it is probably not growing a list of objects each of size 6824 bytes that is the source of the problem per se (even if the list is not pre-allocated), but rather a memory leak with the function fun within the

Re: [R] growing a list sequentially -- memory management

2008-11-14 Thread Duncan Murdoch
On 11/14/2008 12:33 PM, erwann rogard wrote: Thank you all for your answers. I think I have enough to keep going: As pointed out it is probably not growing a list of objects each of size 6824 bytes that is the source of the problem per se (even if the list is not pre-allocated), but rather a

[R] Change Confidence Limits on a plot

2008-11-14 Thread Robin Clark
Hi, I am attempting to set the confidence limits on a ls means plot as follows: mult-glht(lm(effectModel, data=statdata, na.action = na.omit), linfct=mcp(mainEffect=Means)) meanPlot - sub(.html, meanplot.jpg, htmlFile) jpeg(meanPlot) plot(mult, main=NA,

[R] dir.create only gives first character of name when warning

2008-11-14 Thread Keith Ponting
This is not a major issue, but is there any way to get the full directory name out when dir.create issues a warning? I am running R 2.8.0 patched on Windows Vista - full details below. With the following code: dir.create(test) obscure-test dir.create(obscure) I get the warning message: In

Re: [R] dir.create only gives first character of name when warning

2008-11-14 Thread Prof Brian Ripley
You are running an outdated R-patched. The current version's CHANGES file says o dir.create() did not print the path correctly in warning messages. and your example works for me. On Fri, 14 Nov 2008, Keith Ponting wrote: This is not a major issue, but is there any way to get the

Re: [R] Change Confidence Limits on a plot

2008-11-14 Thread Gavin Simpson
On Fri, 2008-11-14 at 08:35 -0800, Robin Clark wrote: Hi, I am attempting to set the confidence limits on a ls means plot as follows: mult-glht(lm(effectModel, data=statdata, na.action = na.omit), linfct=mcp(mainEffect=Means)) meanPlot - sub(.html, meanplot.jpg, htmlFile)

Re: [R] Problems when I try to download.file pdfs

2008-11-14 Thread Duncan Temple Lang
Henrik Bengtsson wrote: See ?download.file and argument 'mode'. You want to use mode=wb. To R-core: I've asked it before, isn't the most common use case to download files in 'binary' mode? I cannot even remember when I last wanted to transfer a file in 'text' mode. I vote for making

Re: [R] licensing of R packages

2008-11-14 Thread Berwin A Turlach
G'day Duncan, On Fri, 14 Nov 2008 12:36:15 -0500 Duncan Murdoch [EMAIL PROTECTED] wrote: On 11/14/2008 11:57 AM, Carlos Ungil wrote: And the copyright owners have recourse to legal action if they think there is a license violation. Again, I don't know what a court would decide, but if

Re: [R] exponential of a matrix

2008-11-14 Thread Martin Maechler
MM == Martin Maechler [EMAIL PROTECTED] on Fri, 14 Nov 2008 18:05:54 +0100 writes: DW == David Winsemius [EMAIL PROTECTED] on Tue, 11 Nov 2008 17:52:18 -0500 writes: DW In 2004 Martyn Plummer said that functionality was DW available in packages msm (as MatrixExp) and

Re: [R] licensing of R packages

2008-11-14 Thread Duncan Murdoch
On 11/14/2008 1:14 PM, Berwin A Turlach wrote: G'day Duncan, On Fri, 14 Nov 2008 12:36:15 -0500 Duncan Murdoch [EMAIL PROTECTED] wrote: On 11/14/2008 11:57 AM, Carlos Ungil wrote: And the copyright owners have recourse to legal action if they think there is a license violation. Again, I

[R] compare performance behavior over a lifecycle

2008-11-14 Thread Prew, Paul
Dear all, I would like to characterize the behavior of a certain product over its lifetime. The purpose is to compare the behavior of experimental versions of the product vs. a baseline version. It's known that the behavior of the product follows a roughly trapezoidal pattern: start-up effect

Re: [R] licensing of R packages

2008-11-14 Thread Berwin A Turlach
G'day Duncan, On Fri, 14 Nov 2008 13:37:20 -0500 Duncan Murdoch [EMAIL PROTECTED] wrote: What is so special about binaries? First, with binaries it is (presumably) easier to define when one piece of software is part of another. Secondly, I presume that the software that started this thread

[R] Quantile Regression fixed effects model

2008-11-14 Thread dimitris kapetanakis
Dear R users, I am trying to estimate a fixed effect quantile regression for different quantiles. As Dr. Koenker mention on his article (2004) the model should be estimated simultaneously so it is going to have the same fixed effects for all quantiles. The problem is that when I am using the

Re: [R] licensing of R packages

2008-11-14 Thread Duncan Murdoch
On 11/14/2008 11:57 AM, Carlos Ungil wrote: Barry Rowlingson wrote: This misconception of the license terms comes about because of the use of the word 'use'. If I distribute a short C program that has a call in it to a function that has the same name as something in the GSL, does my C program

[R] Cross-validation

2008-11-14 Thread Tim Smith
Hi, I was trying to do cross-validation using the crossval function (bootstrap package), with the following code: - theta.fit - function(x,y){ model - svm(x,y,kernel = linear)

Re: [R] Quantile Regression fixed effects model

2008-11-14 Thread roger koenker
see: http://www.econ.uiuc.edu/~roger/research/panel/rq.fit.panel.R url:www.econ.uiuc.edu/~rogerRoger Koenker email[EMAIL PROTECTED]Department of Economics vox: 217-333-4558University of Illinois fax: 217-244-6678

Re: [R] Change Confidence Limits on a plot

2008-11-14 Thread Robin Clark
Thanks Gavin and Dieter, I think I've now got the plot working through using the level argument as follows: plot(confint(mult,level = sig) , main=NA, xlab=unlist(strsplit(Args[4],~))[1]) -- View this message in context:

[R] Error in optim when i call it from a function

2008-11-14 Thread Borja Soto Varela
Dear R-users I've got the next problem: I've got this *function*: fitcond=function(x,densfun,pcorte,start,...){ myfn - function(parm,x,pcorte,...) -sum(log(dens(parm,x,pcorte,...))) Call - match.call(expand.dots = TRUE) if (missing(start)) start - NULL dots -

Re: [R] licensing of R packages

2008-11-14 Thread Duncan Murdoch
On 11/14/2008 2:15 PM, Berwin A Turlach wrote: G'day Duncan, On Fri, 14 Nov 2008 13:37:20 -0500 Duncan Murdoch [EMAIL PROTECTED] wrote: What is so special about binaries? First, with binaries it is (presumably) easier to define when one piece of software is part of another. Secondly, I

[R] can I use one data frame to subset data from another?

2008-11-14 Thread Kara Przeczek
I am new to R and have been struggling with the following problem. I apologize if there is an obvious answer that I have missed. Problem: I have a set of hourly temperature data that I would like to average over a number of different hours. Example, I would like the average temperature

[R] Superimposing y-variables in Lattice formulas

2008-11-14 Thread Stavros Macrakis
Given a data frame of a categorical variable and two continuous variables, I would like to display one continuous variable against the other for each value of the categorical variable, all superimposed on the same plot. For example: data(Indometh); str(Indometh) Classes 'nfnGroupedData',

[R] plotting to Postscript and margins

2008-11-14 Thread Bastian A.
Hi, I am using R 2.8.0 on Kubuntu 8.04. My problem is that is can't get my postscript output to work the same way as on screen output. If I copy the device after plotting dev.print() font sizes don't match and text sticks out of the figure margins. When I use postscript() to create a new

Re: [R] running r script in windows command line

2008-11-14 Thread Prof Brian Ripley
You mean Rscript.exe, we presume? Looks like you need to read the basic R manuals (see the posting guide, below). On Fri, 14 Nov 2008, rostam shahname wrote: Hi, I would like to run a saved script in windows command line. Some command which takes the filename as an argument, and runs it in

Re: [R] licensing of R packages

2008-11-14 Thread Carlos Ungil
Duncan Murdoch-2 wrote: The way to lose a GPL lawsuit is to incorporate GPL'd code into your own project, and then not follow the GPL when you redistribute. There's evidence of that. But I've never heard of anyone linking to but not distributing GPL'd code and being sued for it, let

[R] configuring graphics device in Linux

2008-11-14 Thread john polo
greetings, i'm trying plot() from Owen's _The R Guide_ and having trouble with being able to view the result. the Graphics Device 2 draws an image i can only see the top part of and when i try to manipulate the window to see the image, the window then says: ...ure margins too lar... in large

Re: [R] configuring graphics device in Linux

2008-11-14 Thread Erik Iverson
You should begin by telling us what you did to produce the result. That way we can tell if it's something in your R commands or not. If you give us step by step instructions to reproduce the problem (with simulated data, or a dataset distributed with R), it becomes much easier to debug. In

[R] Update packages error message

2008-11-14 Thread Mike Prager
In updating packages (R 2.8.0 on Windows XP SP3), I received an error message (complete with non-ASCII characters as pasted below). This does not seem to have caused a problem. Any idea what is going on and whether it is likely to have consequences? MHP ---

Re: [R] configuring graphics device in Linux

2008-11-14 Thread john polo
Erik Iverson wrote: You should begin by telling us what you did to produce the result. That way we can tell if it's something in your R commands or not. If you give us step by step instructions to reproduce the problem (with simulated data, or a dataset distributed with R), it becomes much

[R] # values used in a function in tapply

2008-11-14 Thread Stephanie Shaw
Hello, I am using tapply to pull out data by the day of week and then perform functions (e.g. mean). I would like to have the number of values used for the calcuation for the functions, sorted by each day of week. A number of entries in any given column are NAs. I have tried the following code

Re: [R] can I use one data frame to subset data from another?

2008-11-14 Thread jim holtman
something like this should work; yourMean - lapply(seq(nrow(period)), function(.indx){ mean(met_h$AT_h[(met_h$DateTime = period$Start[.indx]) (met_h$DateTime = period$End[.indx])]) }) On Fri, Nov 14, 2008 at 3:24 PM, Kara Przeczek [EMAIL PROTECTED] wrote: I am new to R and have been

[R] R system on USB: how to enter relative R environment path in Eclipse/StatET?

2008-11-14 Thread Werner Wernersen
Hi, I am trying to set up a portable R environment and wanted to use Eclipse and StatET as the editor. But when setting the R environment in StatET I cannot figure out how to enter a relative path. Has anybody succeeded in doing this? (eclipse and R are both in the common directory \programs on

Re: [R] # values used in a function in tapply

2008-11-14 Thread jim holtman
Try something like this: amn - tapply(a[,i], a[, 1], colSums, na.rm=TRUE)) but since the result of the tapply is a vector, you can also use: amn - tapply(a[,i], a[, 1],sum, na.rm=TRUE)) On Fri, Nov 14, 2008 at 6:47 PM, Stephanie Shaw [EMAIL PROTECTED] wrote: Hello, I am using tapply to pull

Re: [R] Superimposing y-variables in Lattice formulas

2008-11-14 Thread Deepayan Sarkar
On Fri, Nov 14, 2008 at 1:23 PM, Stavros Macrakis [EMAIL PROTECTED] wrote: Given a data frame of a categorical variable and two continuous variables, I would like to display one continuous variable against the other for each value of the categorical variable, all superimposed on the same plot.

Re: [R] configuring graphics device in Linux

2008-11-14 Thread Erik Iverson
John - john polo wrote: Erik Iverson wrote: You should begin by telling us what you did to produce the result. That way we can tell if it's something in your R commands or not. If you give us step by step instructions to reproduce the problem (with simulated data, or a dataset distributed

[R] unable to download rimage package

2008-11-14 Thread Shantanu D
Hi folks, I sent this to r-devel (twice) but somehow the email seems to have got mangled. Let me try to ask my question on this forum. any help is very much appreciated. While trying to download the rimage package I am checking at the following step g++ -shared -L/usr/local/lib64 -o rimage.so

Re: [R] the number of the arguments of function is not sure

2008-11-14 Thread Chang Jia-Ming
Dear David Philipp, It works well through adding list(...). Many Thanks. Jia Ming On Fri, Nov 14, 2008 at 5:55 PM, David Hajage [EMAIL PROTECTED] wrote: You could try something like this : plot_test - function(...) { args - list(...) par(mfrow = c(length(args), 1)) lapply(args,

[R] VGAM package released on CRAN

2008-11-14 Thread 辻谷将明
Dear Prof. Thomas Yee I$B!G(Bm very interested in your R program VGAM. I tried below your data: # Nonparametric proportional odds model data(pneumo)pneumo = transform(pneumo, let=log(exposure.time))vgam(cbind(normal,mild,severe) ~ s(let), cumulative(par=TRUE), pneumo) However, the

[R] GAM and Poisson distribution

2008-11-14 Thread sallyr
Hi -I'm running a GAM with 7 explanatory variables with a Poisson error structure. All of the variables are continuous so I'm getting error messages in R. cod.fall.full.gam.model-gam(Kept.CPUE~s(HOUR)+s(LAT_dec)+s(LONG_dec)+s(meantemp_C)+s(meandepth_fa)+s(change_depth)+s(seds),

Re: [R] ellipse in pairs plot

2008-11-14 Thread Kaveh Vakili
Dear list moderator, I'm sending you a solution i found to the question i asked the list yesterday (i have not been able to figure out how to post it to the list directly). elly-function(w,col=array(1,dim(w)[1]),pch=array(1,dim(w)[1])){ p-dim(w)[2]

[R] Discriminant Function Analysis

2008-11-14 Thread Senthil Nambi
Hi, I need to emulate the result I in SPSS for discriminant analysis. Specifically, Canonical discriminant function coefficients and most importantly classification results. | | - | -- | |

[R] how to implement zscale equivalent in ds9 scaling in image

2008-11-14 Thread Shantanu D
Hi, I am trying to load the data from a fits file using the FITSIO package and view it with using the image command. Is it possible to implement zscale equivalent of ds9 using the image command? thanks __ R-help@r-project.org mailing list

[R] min of array

2008-11-14 Thread Robert
I wanted to get the minimum of an array of dimenstion (nr,nc,6), so the output was of dimension (nr,nc), ie for each row,column the minimum of 6 numbers. I thought apply might be the sensible way, but I also compared it to looping over each row/column. In this case the loop method was faster

[R] Revised source to my own package; how to update?

2008-11-14 Thread rmailbox
I have written some functions that I have now collected into a package. Of course, there are revisions and additions. I started by creating a skeleton with package.skeleton. I read and deleted the read and delete me file. I edited the DESCRIPTION file appropriately. I can use the package

Re: [R] Revised source to my own package; how to update?

2008-11-14 Thread stephen sefick
?prompt you navigate to the directory that the package skeleton is and ... save any new R functions with the .R extension and it should work just fine. good luck Stephen On Fri, Nov 14, 2008 at 8:37 PM, [EMAIL PROTECTED] wrote: I have written some functions that I have now collected into a

Re: [R] unable to download rimage package

2008-11-14 Thread Prof Brian Ripley
And you got at least three replies on that forum, see the threads https://stat.ethz.ch/pipermail/r-devel/2008-November/051297.html https://stat.ethz.ch/pipermail/r-devel/2008-November/051298.html Please do study the posting guide and don't abuse the R lists by multiple postings with very

Re: [R] configuring graphics device in Linux

2008-11-14 Thread megha patnaik
Hi John, I had struggled with this myself, and investigation revealed that it isn't an R problem, but an X11 bug in Ubuntu. This is evident from plot(rnorm(10)) failing to perform. If you are seeing this, then it is because X11 does not automatically detect Intel graphic cards. The solution is to

Re: [R] configuring graphics device in Linux

2008-11-14 Thread megha patnaik
The steps I carried out to detect where the problem was were as follows: 1. Checked whether basic plots in R worked 2. Created a new UID ( which did not have my saved settings in R) and tried basic plots. If 2. told me that margins were too large, then this was not a problem due to my past