Re: [R] pie chart in lattice - trellis class

2007-05-28 Thread Patrick Giraudoux
Deepayan Sarkar a écrit : On 5/27/07, Patrick Giraudoux [EMAIL PROTECTED] wrote: Dear all, After going through the Lattice doc and R-help list and google, I got the feeling that there is no function in lattice or other package to compute a pie chart object of class trellis. Although pie

Re: [R] pie chart in lattice - trellis class

2007-05-28 Thread Patrick Giraudoux
Jim Lemon a écrit : Patrick Giraudoux wrote: Dear all, After going through the Lattice doc and R-help list and google, I got the feeling that there is no function in lattice or other package to compute a pie chart object of class trellis. Although pie charts are obviously not considered

[R] pie chart in lattice - trellis class

2007-05-27 Thread Patrick Giraudoux
Dear all, After going through the Lattice doc and R-help list and google, I got the feeling that there is no function in lattice or other package to compute a pie chart object of class trellis. Although pie charts are obviously not considered optimal even in the pie() doc ;-) , pie chart

[R] interaction term and scatterplot3d

2007-02-20 Thread Patrick Giraudoux
Dear Listers, I would be interested in representing a trend surface including an interaction term z = f(x,y,x.y) - eg the type of chart obtained with persp() or wireframe(), then adding datapoints as a cloud, ideally with dots which are under the surface in a color, and those who are above in

Re: [R] interaction term and scatterplot3d

2007-02-20 Thread Patrick Giraudoux
the surface) can be attributed comparing observations to predicted values at the same x y values... Patrick Giraudoux a écrit : Dear Listers, I would be interested in representing a trend surface including an interaction term z = f(x,y,x.y) - eg the type of chart obtained with persp() or wireframe

[R] negative binomial family glm R and STATA

2007-01-06 Thread Patrick Giraudoux
Dear Lister, I am facing a strange problem fitting a GLM of the negative binomial family. Actually, I tried to estimate theta (the scale parameter) through glm.nb from MASS and could get convergence only relaxing the convergence tolerance to 1e-3. With warning messages:

[R] plot methods in sp

2006-12-30 Thread Patrick Giraudoux
Dear listers, I am working since a while with the sp package and still wonder how the plot methods are managed with sp spatial objects. For instance, SpatialPolygonsDataFrame objects have obviously a plot method. However it cannot be found in the list provided by methods(plot) . Furthermore

[R] X11 fonts and Ubuntu

2006-12-17 Thread Patrick Giraudoux
Hi, I am moving from Windows XP to Ubuntu 6.10 and installed R 2.4.0. When I run eg plot.lm (things work fine with plot.default - eg plot(rnorm(30),rnorm(30))) plot(lmobject) I can get the first plot and then this message: Hit Return to see next plot: Error in text.default(x, y,

Re: [R] X11 fonts and Ubuntu

2006-12-17 Thread Patrick Giraudoux
-conf.d/dirs/TrueType EndSection Thanks a lot, Patrick Ilias Soumpasis a écrit : 2006/12/17, Patrick Giraudoux [EMAIL PROTECTED]: Hi, I am moving from Windows XP to Ubuntu 6.10 and installed R 2.4.0. When I run eg plot.lm (things work fine with plot.default - eg plot(rnorm(30),rnorm(30

[R] lattice layout multiple pages

2006-11-18 Thread Patrick Giraudoux
Dear all, Using lattice I would like to print a conditionnal plot of 32 panels in a limited number of panels (eg 4) in each of several pages: xyplot(pds~time|Idnid,data=croispond3,layout=c(4,4)) This works well in principle, but the pages are printed without any possibility of stopping the

Re: [R] plot.POSIXct plot.POSIXlt

2006-10-29 Thread Patrick Giraudoux
Patrick Giraudoux wrote: Hi, Just to signal that when I want to plot POSIXct variable on x using format within plot(), I get what I want on the plot but with a number of warnings: plot(y~x,format=%y-%m) Warning messages: 1: format is not a graphical parameter in: plot.window(xlim

[R] plot.POSIXct plot.POSIXlt

2006-10-21 Thread Patrick Giraudoux
Hi, Just to signal that when I want to plot POSIXct variable on x using format within plot(), I get what I want on the plot but with a number of warnings: plot(y~x,format=%y-%m) Warning messages: 1: format is not a graphical parameter in: plot.window(xlim, ylim, log, asp, ...) 2: format is

[R] one is not one

2006-10-21 Thread Patrick Giraudoux
Folks, I have got a strange behaviour when testing this: sum(x) != 1 let us set x-c(70,134,1,5,0) and transform it in a vector of probabilities x-x/sum(x) One expect sum(x) should be equal to 1, which is apparently the case sum(x) [1] 1 However, when I try to test it I get: if(sum(x)

[R] hcc not found, rcmd build

2006-09-29 Thread Patrick Giraudoux
Working under Windows XP, I am compiling a package called 'pgirmess' with the command rcmd build --binary --auto-zip pgirmess I have this message error after having listed: functions text html latex example chm zipping help file hcc: not found cp: cannot stat

Re: [R] hcc not found, rcmd build

2006-09-29 Thread Patrick Giraudoux
Exactly that... Shame on me, ashes on my head and all those sort of things... Thanks for the hint anyway... Patrick Uwe Ligges a écrit : Patrick Giraudoux wrote: Working under Windows XP, I am compiling a package called 'pgirmess' with the command rcmd build --binary --auto-zip

[R] diff, POSIXct, POSIXlt, POSIXt

2006-07-23 Thread Patrick Giraudoux
Dear Listers, I have encountered a strange problem using diff() and POSIXt: dts-c(15/4/2003,15/7/2003,15/10/2003,15/04/2004,15/07/2004,15/10/2004,15/4/2005,15/07/2005,15/10/2005,15/4/2006) dts - strptime(dts, %d/%m/%Y) class(dts) [1] POSIXt POSIXlt diff(dts) Time differences of 7862400,

Re: [R] diff, POSIXct, POSIXlt, POSIXt

2006-07-23 Thread Patrick Giraudoux
EDT 2005-07-15 EDT 2005-10-15 EDT 2006-04-15 EDT diff(dts) Time differences of 91, 92, 183, 91, 92, 182, 91, 92, 182 days On 7/23/06, *Patrick Giraudoux* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dear Listers, I have encountered a strange problem using diff

Re: [R] diff, POSIXct, POSIXlt, POSIXt

2006-07-23 Thread Patrick Giraudoux
, Patrick Giraudoux [EMAIL PROTECTED] wrote: Try converting to POSIXct: That's what I did finally (see the previous e-mail). dts-c(15/4/2003,15/7/2003,15/10/2003,15/04/2004,15/07/2004,15/10/2004,15/4/2005,15/07/2005,15/10/2005,15/4/2006) dts - as.POSIXct(strptime(dts, %d/%m/%Y)) diff

Re: [R] nlme: correlation structure in gls and zero distance

2006-07-02 Thread Patrick Giraudoux
spatial correlation Formula: ~x + y | an Parameter estimate(s): range 0.4304012 Degrees of freedom: 40 total; 36 residual Residual standard error: 1.746205 Joris Patrick Giraudoux wrote: Dear listers, I am trying to model the distribution of fox density over years in the Doubs

[R] nlme: correlation structure in gls and zero distance

2006-07-01 Thread Patrick Giraudoux
Dear listers, I am trying to model the distribution of fox density over years in the Doubs department. Measurements have been taken on 470 plots in March each year and georeferenced. Average density is supposed to be different each year. In a first approach, I would like to use a general

Re: [R] default value for cutoff in gstat variogram()

2006-06-05 Thread Patrick Giraudoux
Edzer J Pebesma a écrit : Patrick Giraudoux wrote: I wonder what is the default value for the argument 'cutoff' when not specified in the variogram.formula function of gstat. Computing variogram envelops within gstat, I am comparing the results obtained with variog in geoR and variogram

[R] default value for cutoff in gstat variogram()

2006-06-03 Thread Patrick Giraudoux
I wonder what is the default value for the argument 'cutoff' when not specified in the variogram.formula function of gstat. Computing variogram envelops within gstat, I am comparing the results obtained with variog in geoR and variogram in gstat, and it took me a while before understanding

[R] POSIX, time zone and Windows

2006-05-21 Thread Patrick Giraudoux
Dear Listers, Apologize to pile up on the 'tz' issue in POSIX objects. I have a 'simple' thing on which I must make up my mind but cannot do it from the existing R-help threads. I am currently working on dog telemetry in China, and download time information from GPS collars. I would like to

Re: [R] POSIX, time zone and Windows

2006-05-21 Thread Patrick Giraudoux
(x - as.POSIXct(mydate, tz='chs-8chd')) [1] 2006-05-16 11:30:00 chd format(x, tz=GMT) [1] 2006-05-16 02:30:00 On 5/21/06, *Patrick Giraudoux* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dear Listers, Apologize to pile up on the 'tz' issue in POSIX objects. I have

Re: [R] lme: null deviance, deviance due to the random effects, residual deviance

2006-05-01 Thread Patrick Giraudoux
more specific application where you might want to use something like this and what you are trying to achieve, you might get a more useful reply. hope this helps, spencer graves Patrick Giraudoux wrote: A maybe trivial and stupid question: In the case of a lm or glm fit

Re: [R] how to draw a circle

2006-04-23 Thread Patrick Giraudoux
You may want to have a look at the package pgirmess and the function polycirc() Kind regards, Patrick __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] lme: null deviance, deviance due to the random effects, residual deviance

2006-04-23 Thread Patrick Giraudoux
am thinking sum of squares estimation in the context of likelihood and deviance estimations... So most likely irrelevant. Moreover, in the case I was exploring, this quantity is much larger than the null deviance computed as above... Any hint appreciated, Patrick Giraudoux

Re: [R] TukeyHSDs function (pgirmess package)

2006-04-15 Thread Patrick Giraudoux
Sorry to have been so poorly reactive. I have been abroad for ten days and then bogged down with administration for the week when back, so totally unproductive!!! The bug is now fixed in the last release of pgirmess (1.2.6) on its way to CRAN and also available on the pgirmess web site

[R] package installation on Mac OS X 10.3.9

2006-03-08 Thread Patrick Giraudoux
Dear listers, I am tryin to install a package in a student training room. Unsuccessfull! With this message: install.packages(pgirmess) trying URL `http://cran.r-project.org/src/contrib/PACKAGES' Content type `text/plain; charset=iso-8859-1' length 77400 bytes opened URL

Re: [R] Where to declare S4 classes?

2006-03-05 Thread Patrick Giraudoux
functions... Patrick Patrick Giraudoux a écrit : Dear listers, I am making a trial to move from S3 to S4... I have created some classes of interest and they work acceptably well for the purpose. I am now wondering how to make them operate in a package. In clear when a package is loaded (eg

[R] Where to declare S4 classes?

2006-03-04 Thread Patrick Giraudoux
Dear listers, I am making a trial to move from S3 to S4... I have created some classes of interest and they work acceptably well for the purpose. I am now wondering how to make them operate in a package. In clear when a package is loaded (eg library(mypackage)) where should I put the class

[R] subtotal, submean, aggregate

2006-02-26 Thread Patrick Giraudoux
3 pasture 17 Did anybody hear about such a function already written in R? If no, any idea to make it simple and elegant to write? Cheers, Patrick Giraudoux __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] subtotal, submean, aggregate

2006-02-26 Thread Patrick Giraudoux
)[,-2] This does not give the same as your example but I think there are some errors in your example output. On 2/26/06, Patrick Giraudoux [EMAIL PROTECTED] wrote: Dear All, I would like to make partial sums (or means or any other function) of the values in intervals along a sequence

Re: [R] subtotal, submean, aggregate

2006-02-26 Thread Patrick Giraudoux
Thanks Roger. Again I learn about a new one: rle(). Though working, get to be a nice Sunday... Cheers, Patrick Roger Bivand a écrit : On Sun, 26 Feb 2006, Patrick Giraudoux wrote: Dear All, I would like to make partial sums (or means or any other function) of the values in intervals

Re: [R] subtotal, submean, aggregate

2006-02-26 Thread Patrick Giraudoux
(diff(as.numeric(transect[,2])))!=0)) runno2 - cumsum(c(TRUE, diff(as.numeric(transect[,2])))!=0) identical(runno, runno2) # TRUE On 2/26/06, Patrick Giraudoux [EMAIL PROTECTED] wrote: Excellent! I was messing with this problem since the early afternoon. Actually the discrepancy you noticed

[R] lme, nlsList, nlsList.selfStart

2006-02-11 Thread Patrick Giraudoux
not found Error in eval(expr, envir, enclos) : object input not found Error in eval(expr, envir, enclos) : object input not found Any hint/suggestion appreciated. Kind regards, Patrick Giraudoux __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] glmmPQL and variance structure

2006-01-07 Thread Patrick Giraudoux
whatever the change in variance structure on this line. Beyond this I wonder why variance structure cannot be passed to lme via glmmPQL... Any idea? Patrick Giraudoux __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] maptools, write.polylistShape

2006-01-07 Thread Patrick Giraudoux
Dear Roger, I am trying to use the write.polylistShape() function of maptools for the first time and realize that it handles list of polygons of class 'polylist'. However, it seems that no as.polylist() function exist in the package. The question behind that is: in your opinion, which would

Re: [R] Memory limitation in GeoR - Windows or R?

2006-01-05 Thread Patrick Giraudoux
help, Kind regards Patrick Giraudoux -- Department of Environmental Biology EA3184 usc INRA University of Franche-Comte 25030 Besancon Cedex (France) tel. +33 381 665 745 fax +33 381 665 797 http://lbe.univ-fcomte.fr Aaron Swoboda a écrit : Dear Sir: I ran across your post to the R

Re: [R] Memory limitation in GeoR - Windows or R?

2006-01-05 Thread Patrick Giraudoux
, *Patrick Giraudoux* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dear Aaron, I am really a tool user and not a tool maker (actually an ecologist doing some biostatistics)... so, I take the liberty of sending a copy of this e-mail to the r-help list where capable

[R] glmmPQL and variance structure

2005-12-27 Thread Patrick Giraudoux
Dear listers, glmmPQL (package MASS) is given to work by repeated call to lme. In the classical outputs glmmPQL the Variance Structure is given as fixed weights, Formula: ~invwt. The script shows that the function varFixed() is used, though the place where 'invwt' is defined remains

Re: [R] repeated values, nlme, correlation structures

2005-11-20 Thread Patrick Giraudoux
the end of the experiment. To answer these questions, I'd use Monte Carlo, as I suggested above. Best Wishes, Spencer Graves Patrick Giraudoux wrote: Spencer Graves a écrit : You are concerned that, using the mean of each age category as variable leads to a loss

Re: [R] repeated values, nlme, correlation structures

2005-11-19 Thread Patrick Giraudoux
, involving other people in that task. Of course if some capable mixed-effect models specialist is interested in having a look to the data set, I can send it off list. Many thanks again, Spencer, I can stick on the track, now... Best regards, Patrick Bon Chance Spencer Graves Patrick

[R] generalised linear mixed effect model, glmmPQL

2005-11-16 Thread Patrick Giraudoux
Dear listers, I am trying to get more familiar with concepts underlying generalised linear mixed models, mainly through Venables and Ripley (fourth edition) and the R-list archive. Of course, as a possibly tool-user biologist I am not that easy with every détails of the mathematical aspects

[R] repeated values, nlme, correlation structures

2005-11-11 Thread Patrick Giraudoux
Dear listers, My request of last week seems not to have drawn someone's attention. Suppose it was not clear enough. I am coping with an observational study where people's aim was to fit growth curve for a population of young blue tits. For logistic reasons, people have not been capable to

[R] repeated values, nlme, correlation structures

2005-11-07 Thread Patrick Giraudoux
Dear listers, As an exercise, I am trying to fit a logistic model with nlme. Blue tit pulli (youngs) were weighted occasionnally (for field reasons) along time in 17 nestboxes. Individuals where not idenfied but their age was known. This means that for a given age several measurements were

Re: [R] nlme, predict.nlme, levels not allowed

2005-11-06 Thread Patrick Giraudoux
this helps, Pedro. I have tried the workaround for my own case and it works... Any news since then about fixing the problem? Patrick Patrick Giraudoux a écrit : Dear listers, I am trying to fit a nlme model with age and pds as reals, and zone a factor with two levels Annaba and Boumalek

[R] nlme, predict.nlme, levels not allowed

2005-11-05 Thread Patrick Giraudoux
Dear listers, I am trying to fit a nlme model with age and pds as reals, and zone a factor with two levels Annaba and Boumalek . The best model found is the following: modm3 Nonlinear mixed-effects model fit by maximum likelihood Model: pds ~ Asym/(1 + exp((xmid - age)/scal)) Data:

[R] LaTex error when creating DVI version when compiling package

2005-10-29 Thread Patrick Giraudoux
Management, 65, 373-378; Burnham, K.P. and Anderson, D.R. (2002) Model Selection and Multimodel Inference: a Practical Information-Theoretic Approach, 2nd edn., Springer-Verlag, New York. 353 pp } \author{ Patrick Giraudoux and David Pleydell: [EMAIL PROTECTED], [EMAIL PROTECTED] } \seealso{ \code

Re: [R] LaTex error when creating DVI version when compiling package

2005-10-29 Thread Patrick Giraudoux
shows what it is. My typical errors are using LaTeX special symbols, and most often having unprotected $ and _. I see quite a lot of _ below in \value{}, so I'd try \_ there first. Roger Berwin A Turlach a écrit : G'day Patrick PG == Patrick Giraudoux [EMAIL PROTECTED] writes

[R] unexpected error message with variog.mc.env() - geoR

2005-09-04 Thread Patrick Giraudoux
Dear R-listers, I have got an error with variog.mc.env() package:geoR that I cannot sort the origin out. The origianal data file can be sent to people interested. bin0-variog(don1bgeo,estimator.type=modulus, direction=0) bin90-variog(don1bgeo,estimator.type=modulus, direction=pi/2)

[R] axTicks and window resizing

2005-08-18 Thread Patrick Giraudoux
Dear listers, I have written a function to facilitate the drawing of altitude profiles with x (distance), y (altitude) and a z parameter (altitude magnification). profplot-function(x,y,z=10,...){ op - par()$mai par(mai=c(0.95625,0.76875,0.76875,0.95625)) plot(x,y*z,

[R] Set R 2.1.1. in English

2005-08-18 Thread Patrick Giraudoux
applications in the foreign (= French, here) language. Thanks for any further hint, Patrick Giraudoux __ 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

Re: [R] axTicks and window resizing

2005-08-18 Thread Patrick Giraudoux
=axTicks(2)/z,las=1) axis(4,at=axTicks(2),labels=axTicks(2)/z,las=1) par(mai=op) } Thanks for the hint, Patrick Prof Brian Ripley a écrit : On Thu, 18 Aug 2005, Patrick Giraudoux wrote: Dear listers, I have written a function to facilitate the drawing of altitude profiles with x (distance), y

Re: [R] Set R 2.1.1. in English

2005-08-18 Thread Patrick Giraudoux
with the SDI mode... Patrick Giraudoux Prof Brian Ripley a écrit : On Thu, 18 Aug 2005, Patrick Giraudoux wrote: (whish R 2.1.1 could be parametrise 'English' even with a French Windows XP) If I understand you correctly, it can. Just add LANGUAGE=en to the shortcut. Wonderful

[R] RCMD check error windows

2005-04-23 Thread Patrick Giraudoux
Dear Lister, I am working with Windows XP and R 2.1.0 and can check and build home-made packages easily (just *.r, *.rmd, *.rda files, no compiled code). However for some reasons, I cannot check or build the package 'foreign' from the source (I took it as an exercise...). After some lines of

Re: [R] RCMD check error windows

2005-04-23 Thread Patrick Giraudoux
Dear Uwe, Is this a full installation of R (I guess you have not compiled it yourself)? If yes, does gcc, perl and friends work? In the first place, libR.a must be compiled at this point which should happen automatically. But it is really hard to say which of the tools fails exactly. Uwe Ligges

Re: [R] RCMD check error windows

2005-04-23 Thread Patrick Giraudoux
797 http://lbe.univ-fcomte.fr Uwe Ligges a écrit : Patrick Giraudoux wrote: Dear Uwe, Is this a full installation of R (I guess you have not compiled it yourself)? If yes, does gcc, perl and friends work? In the first place, libR.a must be compiled at this point which should happen automatically

[R] install.packages and MacOS 10.3.8

2005-04-13 Thread Patrick Giraudoux
Dear Listers, I am trying to install packages via install.packages() from MacOS 10.3.8. Installing work fine when run from the menu, but the following command (useful for setting up each computer of the student computer room) leads nowhere for some reasons:

Re: [R] install.packages and MacOS 10.3.8

2005-04-13 Thread Patrick Giraudoux
Dear Uwe, That install.binaries() was exactly what I needed... Thanks a lot. Uwe Ligges a écrit : Patrick Giraudoux wrote: Dear Listers, I am trying to install packages via install.packages() from MacOS 10.3.8. Installing work fine when run from the menu, but the following command (useful

[R] maptools, filename writing shapefiles

2005-03-05 Thread Patrick Giraudoux H
the filename by hand keep it readable by any GIS). Can anybody (especially Roger...) tell us where comes the trouble from? Patrick Giraudoux __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Re: maptools, filename writing shapefiles

2005-03-05 Thread Patrick Giraudoux H
says (p. 6): All file names adhere to the 8.3 naming convention. The main file, the index file, and the dBASE file have the same prefix. The prefix must start with an alphanumeric character (aZ, 09), followed by zero or up to seven characters (aZ, 09, _, -). The suffix for the main file is .shp.

[R] MacOS X and vectorized files (emf, wmf,...)

2005-01-30 Thread Patrick Giraudoux H
__ 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

Re: [R] New user...tips for spdep

2005-01-30 Thread Patrick Giraudoux H
__ 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

Re: [R] error preparing a package for lazy loading with R CMD

2005-01-30 Thread Patrick Giraudoux H
Trouble just solved by Uwe Ligge! See below: You have a wrong Built field in your DESCRIPTION file!!! Built: R 2.0.1;windows Please don't specify such a line yourself, R CMD build does it for you. Ashes on my head and all these sort of things... Patrick

Re: [R] error preparing a package for lazy loading with R CMD

2005-01-30 Thread Patrick Giraudoux H
Trouble just solved by Uwe Ligge! See below: You have a wrong Built field in your DESCRIPTION file!!! Built: R 2.0.1;windows. Please don't specify such a line yourself, R CMD build does it for you. Ashes on my head and all these sort of things... Patrick

Re: [R] New user...tips for spdep

2005-01-30 Thread Patrick Giraudoux H
Hello List, I'm a very new user to the R system. I'm only beginning to learn the basics, but so far I've been able to do little more than try a few examples, and of course begin reading the documentation. My primary motivation for exploring R is the availability of tools like the 'spdep'

[R] error preparing a package for lazy loading with R CMD

2005-01-24 Thread Patrick Giraudoux H
\INDEX del %1\data\00Index del %1\chm\*.* /Q ..\..\bin\R CMD build --force --binary --auto-zip %1 ..\..\bin\R CMD build --force %1 ..\..\bin\R CMD check %1 cd %1.Rcheck dvipdfm %1-manual notepad 00check.log cd .. cd .. From: John Fox [EMAIL PROTECTED] To: 'Patrick Giraudoux H' [EMAIL PROTECTED] Subject

RE: [R] error preparing a package for lazy loading with R CMD

2005-01-24 Thread Patrick Giraudoux H
the problem you described. Just a guess. Andy From: Patrick Giraudoux H Dear Lister, I work with R 2.0.1 and Windows XP, and meet a strange trouble trying to make a R package with a make-package.bat file John Fox has kindly provided (see detailed script below). I am working with it since some

[R] matrix and error in points, plot ?

2005-01-02 Thread Patrick Giraudoux H
of a matrix in the plot() points() functions. In case of mise-use which kind can it be? I am working with R 2.0.1 and Windows XP. Cheers, Patrick Giraudoux __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] writing a simple package in R 2.0 under Windows XP

2004-11-07 Thread H Patrick Giraudoux
, Patrick Giraudoux [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] writing a simple package in R 2.0 under Windows XP

2004-11-07 Thread H Patrick Giraudoux
by default with rw2000.exe). Advised to re-install R taking this into account for those who gradually try to move from function development to package writing... Thanks for the hints kindly provided even a Sunday, Patrick Giraudoux A 10:24 07/11/2004 -0500, vous avez écrit : Dear Patrick, I've

[R] reading .Rprofile at startup in R 2.0.0

2004-11-06 Thread Patrick Giraudoux
Dear listers, Moving from R 1.9.1 to R 2.0.0 today, it happens that the traditional .RProfile (located in my home directory: C:\Documents and Settings\Giraudoux) is not read at startup with R 2.0. Any suggestion? Patrick Giraudoux __ [EMAIL PROTECTED

Re: [R] reading .Rprofile at startup in R 2.0.0

2004-11-06 Thread H Patrick Giraudoux
and Settings\Giraudoux MHP At 08:55 AM 11/06/2004, you wrote: Dear listers, Moving from R 1.9.1 to R 2.0.0 today, it happens that the traditional .RProfile (located in my home directory: C:\Documents and Settings\Giraudoux) is not read at startup with R 2.0. Any suggestion? Patrick Giraudoux

[R] which() and value replacement in a matrix

2004-10-09 Thread Patrick Giraudoux
Hi, I cannot go through the archives with which() as key-word... so common. Though I am sure to have seen something about this subject in the past could somebody put me on the track. I have a matrix (actually a data.frame) in which I would replace the non-null values by 1. I tried the

Re: [R] which() and value replacement in a matrix

2004-10-09 Thread Patrick Giraudoux
-as.data.frame(myforetbin) It works but I wonder if there are no more simple ways... All the best, Patrick - Original Message - From: Liaw, Andy [EMAIL PROTECTED] To: 'Patrick Giraudoux' [EMAIL PROTECTED]; r-help [EMAIL PROTECTED] Sent: Saturday, October 09, 2004 3:00 PM Subject: RE: [R] which

[R] conversion of a data.frame of numerics to a data.frame of factors

2004-10-09 Thread Patrick Giraudoux
Hi, I am trying to convert a data.frame of numerics (this could be a matrix as well in this case) into a data.frame of factors. I did it in a way that is less than direct... myforet2-t(myforet) for (i in 1:length(myforet2[1,])) { if (i == 1)myforetfact-list(as.factor(myforet2[,i]))

Re: [R] conversion of a data.frame of numerics to a data.frame of factors

2004-10-09 Thread Patrick Giraudoux
] To: Patrick Giraudoux [EMAIL PROTECTED] Cc: r-help [EMAIL PROTECTED] Sent: Saturday, October 09, 2004 4:32 PM Subject: Re: [R] conversion of a data.frame of numerics to a data.frame of factors On Sat, 9 Oct 2004, Patrick Giraudoux wrote: mydf[] - lapply(mydf, as.factor) would appear

[R] cluster analysis and null hypothesis testing

2004-09-14 Thread Patrick Giraudoux
Hi, I am wondering if a Monte Carlo method (or equivalent) exist permitting to test the randomness of a cluster analysis (eg got by hclust(). I went through the package fpc (maybe too superficially) but dit not find such method. Thanks for any hint, Patrick Giraudoux

[R] Writing polyline shapefiles

2004-07-28 Thread Patrick Giraudoux
they were structured and thus write some programme by myself, but unsuccessfully (the way those files are coded is not ascii) Maptools is fantastic for importation and data handling within R, but unfortunately cannot export to shapefiles. Any news? Patrick Giraudoux PS: ESRI has managed to distribute

[R] Re: bootstrap and nls

2004-07-24 Thread Patrick Giraudoux
: may this biase the result in a way? I am not too much worried about it for my current purpose (crude comparison of parameters), but I guess that it may be an issue for true statisticians... Many thanks for the most helpful hints provided, Patrick Giraudoux Hi, I am trying to bootstrap

[R] bootstrap and nls

2004-07-18 Thread Patrick Giraudoux
) : Missing value or an Infinity produced when evaluating the model It seems that the init values (start=) may come not to be suitable while bootstraping. Data can be sent offline to whom wanted to try on the dataset. Any hint welcome! Best regards, Patrick Giraudoux University of Franche

[R] metafile copy and R 1.9.0

2004-05-08 Thread Patrick Giraudoux
plot(). Thus, I suppose that it may come from lattice or grid (going through the R-archives I checked that a similar trouble occur when R has been updated to 1.5). Has this trouble been met already and is there a way to turn it? Patrick Giraudoux

[R] Re: metafile copy and R 1.9.0, trellis, grid

2004-05-08 Thread Patrick Giraudoux
from any software reading metafiles. I tried it with my own xyplot trouble and got absolutely good result. Very easy, even to me!!! Thanks to them for the hint, Patrick - Original Message - From: Patrick Giraudoux [EMAIL PROTECTED] To: r-help [EMAIL PROTECTED] Sent: Saturday, May 08

[R] contourplot, xyplot, aspect ratio, mfrow

2004-05-02 Thread Patrick Giraudoux
of screens- and have a Trellis plot in each of the sub-screens. It seems that contourplot does not comply with and ignore the above parameters. Right or wrong? If so, which approach can solve this problem? Thanks in advance for any hint, Patrick Giraudoux

Re: [R] contourplot, xyplot, aspect ratio, mfrow

2004-05-02 Thread Patrick Giraudoux
- From: Deepayan Sarkar [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Patrick Giraudoux [EMAIL PROTECTED] Sent: Sunday, May 02, 2004 3:24 PM Subject: Re: [R] contourplot, xyplot, aspect ratio, mfrow On Sunday 02 May 2004 03:30, Patrick Giraudoux wrote: Hi, I am gradually moving from the classical

[R] RWinEdt, R.profile and version 1.9.0

2004-05-01 Thread Patrick Giraudoux
(RWinEdt) from the gui.exe interface, everything goes well. How can I manage with this Error in eval(expr, envir, enclos) : couldn't find function winMenuAdd generated by a call to library(RWinEdt) in the .Rprofile script? Patrick Giraudoux __ [EMAIL

[R] Re: RWinEdt, R.profile and version 1.9.0

2004-05-01 Thread Patrick Giraudoux
,nf==Y,nf==)) {library(utils);library(RWinEdt)} rm(nf) This loading was not necessary in the version 1.8.1. - Original Message - From: Patrick Giraudoux [EMAIL PROTECTED] To: r-help [EMAIL PROTECTED] Sent: Saturday, May 01, 2004 1:39 PM Subject: RWinEdt, R.profile and version 1.9.0 Hi

[R] log(0) error is not handled in xyplot, Windows

2004-05-01 Thread Patrick Giraudoux
handled (leading to an error message or something else). I can provide a data.frame off the list to anybody who wants a reproducible example and to look at what happens. Patrick Giraudoux - Original Message - From: Deepayan Sarkar [EMAIL PROTECTED] To: Patrick Giraudoux [EMAIL

[R] glm.nb and anova

2004-04-30 Thread Patrick Giraudoux
for the first variable is obtained for every first independant variable, except when only one is left in the model. Can somebody tell me what happens? Thanks in advance, Patrick Giraudoux __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

[R] nlme - sum of squares - permutation test

2004-04-17 Thread Patrick Giraudoux
(distance) and the comparison of the F-values obtained with the F-values observed with the original (non permuted)data. Thanks in advance for any hint, Patrick Giraudoux PS: below the current script of the draft permutation test: lme.perm.test-function(lme.model,pn=1000){ # Giraudoux 17.4.2004

[R] adding text in (pair) panels (splom)

2004-04-09 Thread Patrick Giraudoux
created eg with: panel=function(x,y,...){ panel.xyplot(x,y,...) panel.abline(lm(y~x),...) }) ? Any hint appreciated, Patrick Giraudoux __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] adding text in (pair) panels (splom)

2004-04-09 Thread Patrick Giraudoux
OK Paul and Kjetil I understand that grid.text is part of the library grid. I have tried with Paul's arguments. It works perfectly well. Thanks a lot both, Patrick - Original Message - From: Paul Murrell [EMAIL PROTECTED] To: Patrick Giraudoux [EMAIL PROTECTED] Cc: r-help [EMAIL

[R] Memory limitation in GeoR - Windows or R?

2004-02-26 Thread Patrick Giraudoux
to handle a set of 5000-6000 coordinates in once in the next few months. I wonder if it will go through it on my plateform (Windows XP and compaq nx7000). If not, will the limitation due to R or to Windows? Does an alternate solution exist? Thanks for any hint, Patrick Giraudoux

Re: [R] writing polygons/segments to shapefiles (.shp) or other ArcGIS compatible file

2004-02-26 Thread Patrick Giraudoux
created in R would be most useful. Many thanks for your interest and support, Patrick Giraudoux Université de Franche-Comté Laboratoire de Biologie environnementale EA3184 usc INRA F-25030 Besançon Cedex tél.: +33 381 665 745 fax.: +33 381 665 797 http://lbe.univ-fcomte.fr Ce n'est pas en

[R] writing polygons/segments to shapefiles (.shp) or other ArCGIS compatible file

2004-02-25 Thread Patrick Giraudoux
for any hint Patrick - Original Message - From: Patrick Giraudoux [EMAIL PROTECTED] To: r-help [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 1:08 PM Subject: writing polygons/segments to shapefiles (.shp) Dear all, The library maptools offers a fantastic support for shapefile

Re: [R] writing polygons/segments to shapefiles (.shp) or other ArCGIS compatible file

2004-02-25 Thread Patrick Giraudoux
[EMAIL PROTECTED] To: Patrick Giraudoux [EMAIL PROTECTED]; r-help [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 5:35 PM Subject: Re: [R] writing polygons/segments to shapefiles (.shp) or other ArCGIS compatible file There is a little problem with the approach I described in my previous email

[R] border of a polygon in contour.kriging - geoR

2004-02-23 Thread Patrick Giraudoux
in contour(as.double(x), as.double(y), z, as.double(levels), labels, : dimension mismatch In addition: Warning message: Replacement length not a multiple of the elements to replace in matrix(...) Any hint? Thanks in advance, Patrick Giraudoux

[R] about contour - get contour coordinates - exclude area display

2004-01-31 Thread Patrick Giraudoux
useful to get the contour lines coordinates (for instance, for importation in a GIS). Is there a way to get them? Thanks in advance for any hint, Patrick Giraudoux __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] loop variable passage and lists

2004-01-24 Thread Patrick Giraudoux
to the eleventh element of list1): for (i in 1:11){list2[[i]]-list1[[i]][3:4]} Error in [.data.frame(list1[[i]], 3:4) : undefined columns selected It looks like if the loop variable i could not be passed into the loop. Any hint? Patrick Giraudoux

  1   2   >