Re: [R] Summary shows wrong maximum

2006-12-04 Thread Gavin Simpson
n/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. -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [t] +44 (0)20 7679 0522 ECRC &am

Re: [R] if(){} else{}

2006-12-05 Thread Gavin Simpson
able to > fix the pb. > > Thx Hans > > ______ > 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. -- %~

Re: [R] if(){} else{}

2006-12-05 Thread Gavin Simpson
ng (Until January 07) > Department of Probability and Statistics > The University of Sheffield > The Hicks Building > Hounsfield Road > Sheffield S3 7RH > United Kingdom > Phone:+44 114

Re: [R] Drawing a 3-D plot for PCA?

2006-12-22 Thread Gavin Simpson
ed to perform PCA, which can then be drawn in 3D using the rgl package or the scatterplot3d package, the former allowing dynamic rotation and zooming of the ordination configuration. HTH G -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson

Re: [R] graphical parameters: margins

2007-01-02 Thread Gavin Simpson
el on line 6 to push it away from the plot axis. Repeat for other sides... 3) par(opar) resets to the defaults. HTH G -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 P

Re: [R] pretended size postscript and size of the graphic device window

2007-01-04 Thread Gavin Simpson
n't look to hard though so it is no surprise that I did not find a solution. HTH G > > Best regards > mirca heli -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geog

[R] listing all functions in R

2007-01-06 Thread Gavin Simpson
than Baron's search site to return results before timing out. Thanks in advance, Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [t] +44 (0)20 7679 0522 ECRC [f] +44 (0)20 7679 0565

Re: [R] listing all functions in R

2007-01-06 Thread Gavin Simpson
above, as follows: paste(sQuote(sort(unique(unlist(z)), decreasing = TRUE)), collapse = ", ") > > gives a single-column quoted list. It does include internal functions, > operators, S3 methods ... so you probably want to edit it. Once again, thank you. All the be

Re: [R] listing all functions in R

2007-01-06 Thread Gavin Simpson
On Sat, 2007-01-06 at 10:43 -0500, Duncan Murdoch wrote: > On 1/6/2007 9:25 AM, Gavin Simpson wrote: > > On Sat, 2007-01-06 at 13:48 +, Prof Brian Ripley wrote: > >> Could you tell us what you mean by > > > > Thank you for your reply, Prof. Ripley. > >

Re: [R] listing all functions in R

2007-01-06 Thread Gavin Simpson
ans I can still use Emacs/ESS to prepare, format, and run the code through R, which is my preferred environment. All the best, G > > On 1/6/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > > On 1/6/2007 9:25 AM, Gavin Simpson wrote: > > > On Sat, 2007-01-06 at 13:48 +

Re: [R] as.Date() results depend on order of data within vector?

2007-01-07 Thread Gavin Simpson
-darwin8.7.0 locale: > C/en_GB.UTF-8/C/C/C/C > attached base packages: > [1] "methods" "stats" "graphics" "grDevices" "utils" > "datasets" "base" > > other attached packages: > rcompletion RODB

Re: [R] error in kmeans

2005-04-01 Thread Gavin Simpson
mean) M.km <- kmeans(M.x, initial) HTH -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geograph

Re: [R] sweave bwplot error

2005-04-07 Thread Gavin Simpson
0> thanks for help christoph You need wrap print() round lattice functions to get them to do anything in situations like this. See the Sweave FAQ for this FAQ: http://www.ci.tuwien.ac.at/~leisch/Sweave/FAQ.html#x1-8000A.6 G -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

[R] Sweave and abbreviating output from R

2005-04-11 Thread Gavin Simpson
anyone tried to do this? Does anyone know of an automatic way of achieving the simple abbreviation or the more complicated version I described? Any thoughts on this? Thanks in advance, Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson

Re: [R] Sweave and abbreviating output from R

2005-04-11 Thread Gavin Simpson
Gabor Grothendieck wrote: On Apr 11, 2005 7:22 AM, Gavin Simpson <[EMAIL PROTECTED]> wrote: Dear List, I'm using Sweave to produce a series of class handouts for a course I am running. The students in previous years have commented about wanting output within the handouts so they can

Re: [R] Sweave and abbreviating output from R

2005-04-11 Thread Gavin Simpson
Roger Bivand wrote: On Mon, 11 Apr 2005, Gavin Simpson wrote: Dear List, I'm using Sweave to produce a series of class handouts for a course I am running. The students in previous years have commented about wanting output within the handouts so they can see what to expect the output to

Re: [R] Aspect ratio and limits

2005-04-19 Thread Gavin Simpson
eqscplot() which can produce rectangular plots with equal scales. It is used in Chapter 11 of MASS 4th Ed for example. G -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20

Re: [R] algorithm used in k-mean clustering

2005-04-22 Thread Gavin Simpson
Asha Jayanthi wrote: Hi, I have used the kmean fucntion in R to produce some results for my analysis. I like to know the specific underlying algorithm used for the implementation of the function kmean in R. I tried looking for some documents but could not find any. I obtained the kmean result

[R] Automating plot labelling in custom function in lapply() ?

2005-04-29 Thread Gavin Simpson
label within in the above situation? Thanks in advance, Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC

Re: [R] Change class factor to numeric

2005-05-06 Thread Gavin Simpson
he FAQ 7.10 How do I convert factors to numeric? http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-convert-factors-to-numeric_003f HTH Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow

Re: [R] plotting gam curve against predictors

2005-05-16 Thread Gavin Simpson
lines(new.dat, gam.pred$fit, type = "l", lty = "dotted") See ?predict.gam for more information. I assume the procedure will be similar if you use package gam instead, the details of the predict methods may differ though. HTH Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~

Re: [R] Mental Block with PCA of multivariate time series!

2005-05-16 Thread Gavin Simpson
nt to prcomp to do the subsetting without having to know that there are 50 rows per species. Take a look at that argument if you have a variable that defines the blocks for you. Is this what you were after? All the best, Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

Re: [R] Mental Block with PCA of multivariate time series!

2005-05-16 Thread Gavin Simpson
stitute of Atmospheric Science School of Earth and Environment University of Leeds Leeds LS2 9JT tel: +44 113 343 1596 fax: +44 113 343 6716 mail: [EMAIL PROTECTED] On Mon, 16 May 2005, Gavin Simpson wrote: Laura Quinn wrote: Please could someone point me in the right direction as I appear to be having a to

Re: [R] Fitting Contour to Data Points

2005-05-16 Thread Gavin Simpson
re are likely to be other ways. MASS (the book) has an example of using loess() to predict surfaces from irregular data for example... HTH Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow

<    1   2   3   4