Re: [R] NLME: using the layout option with the plot command

2006-06-22 Thread Mark Difford
Hi Greg, Since you haven't yet had a response, you could distill this. It uses the pixel dataset from nlme() as an example. ## To get separate files, do this postscript("c:\MyGraph%03.ps", onefile=F) plot(Pixel, display = "Dog", inner = ~Side, layout=c(4,1)) dev.off() ## To get your layout int

Re: [R] Function to convert categorical variable in numerical

2007-05-24 Thread Mark Difford
Hi J. Andres, You are probably better off using the ade4 package, which has two functions that will do exactly what you want, i.e. a PCA using mixed quantitative and categorical variables: ## You will need to download ade4 first library(ade4) ?dudi.hillsmith ?dudi.mix Regards, Mark Difford

Re: [R] nested design; intercept

2006-10-04 Thread Mark Difford
at my Site-coefficients are now calculated relative to my reference Site (treatment.contrasts), *but* that my TideCode levels now relate to their reference level within Site. Is that correct? Thank you in advance for help. Regards, Mark Difford. Mark Difford Ph.D. candidate, Botany Departmen

Re: [R] sparklines in lattice

2006-10-06 Thread Mark Difford
Dear R-help, Has anyone implemented sparklines in the strips of a lattice plot? What I have in mind is, say, highlighting that part of a time series that one is examining in more detail in a set of lattice plots. Regads,. Mark Difford. PS: (Andreas Loffler has implemented a simple but

[R] Fw: nested linear model; with common intercept

2006-10-13 Thread Mark Difford
aware (?) that my Site-coefficients are now calculated relative to my reference Site (treatment.contrasts), *but* that my TideCode levels now relate to their reference level within Site. Is that correct? Thank you in advance for help. Regards, Mark Difford. Mark Difford Ph.D. ca

Re: [R] biplot package

2007-06-05 Thread Mark Difford
uthors have done in package vegan. There are also some interesting implementations of in package psy, and in the compositions package. Best Regards, Mark Difford. Jose Claudio Faria wrote: > > Dears, > > I've been learning biplot (Gabriel, 1971) and I found the function >

Re: [R] pointwise confidence bands or interval values for a non parametric sm.regression

2007-06-08 Thread Mark Difford
Hi Martin, Do please, at least, read the documentation for the package you are using!: ?sm.options ## sub: display ## Example with(iris, sm.regression(Sepal.Length, Sepal.Width, display="se")) Regards, Mark Difford. M. P. Papadatos wrote: > > Dear all, >

Re: [R] Problem with RSVGTipsDevice

2007-06-11 Thread Mark Difford
Hi Mister_Bluesman, Sorry to sadden you further, but your example svg works perfectly on my machine (R 2.5 running on Vista). All the "ToolTips" display. Perhaps it's your browser [setup]: I'm using Opera 9.20 (Build 8771). HTH, Mark Difford. mister_bluesman wrote: >

Re: [R] Problem with RSVGTipsDevice

2007-06-11 Thread Mark Difford
Mister_Bluesman, Perhaps I should have been more precise: your included svgplot1.svg displays fine...! mister_bluesman wrote: > > Hi there. > > I am still trying to get the RSVGTipsDevice to work, yet I can not. > > I have copied the first example from RSVGTipsDevice documentation: > > libr

Re: [R] Problem with RSVGTipsDevice

2007-06-11 Thread Mark Difford
d lots of "null" arguments to various functions. It's likely that the problem lies there. HTH, Mark Difford. mister_bluesman wrote: > > Ah. Now that's intersting. It works in Opera. But do you get an annoying > 'Null' label by the cursor when you place it over th

Re: [R] Difference between prcomp and cmdscale

2007-06-14 Thread Mark Difford
Michael, Why should that confuse you? Have you tried reading some of the literature on these methods? There's plenty about them on the Net (Wiki's often a goodish place to start)---and even in R, if you're prepared to look ;). BestR, Mark. michael watson (IAH-C) wrote: > > I'm looking for s

Re: [R] Difference between prcomp and cmdscale

2007-06-14 Thread Mark Difford
and MDS. If you know of any, of course I would be happy to read them. > > Many thanks > Mick > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mark Difford > Sent: 14 June 2007 12:49 > To: r-help@stat.math.ethz.ch > S

Re: [R] text display using expression or not

2007-06-15 Thread Mark Difford
Hi Sarah, You will kick yourself (perhaps?). Try: ?par ## sub: font.main (& font, just above) ## Example par(mfrow=c(2,1)) plot(1:10, 1:10, main="Figure A", font.main=1) plot(1:10, 1:10, main=expression("Figure B")) Regards, Mark. Sarah Goslee wrote: > > Hello, > > I imagine that I'm mi

Re: [R] Visualize quartiles of plot line

2007-06-16 Thread Mark Difford
Hi Arne, You might also take a look at Prof. Harrell's function: require(Hmisc) ## req. library [note: also needs lattice] ?smedian.hilow Then look at: ?xYplot And, in particular, at: panel.xYplot(), sub "Usage:" This does what you want. ## Example; also look at Prof Harrell's e

Re: [R] Controlling text and strip arrangement in xyplot

2007-06-19 Thread Mark Difford
Hi Pablo, > DF <- data.frame(x=rnorm(20), y=rnorm(20), g1=rep(letters[1:2], 10), >g2=rep(LETTERS[1:2], each=10), > g3=rep(rep(letters[3:4],each=5),2)) > > xyplot(y ~ x | g1 + g2, groups=g3, data=DF) ... I remember findling with this some time ago and getting most of the way there. If

Re: [R] Controlling text and strip arrangement in xyplot

2007-06-19 Thread Mark Difford
Hi Deepayan, I, and probably quite a few others, will find this very useful until you find the time to wrap up a proper implementation. Many thanks, BestR, Mark. Deepayan Sarkar wrote: > > On 6/19/07, Juan Pablo Lewinger <[EMAIL PROTECTED]> wrote: >> I've searched the archives and read the x

Re: [R] Dissimilarity

2007-06-20 Thread Mark Difford
Hi Birgit, Just to add to what Gavin has said. There are two other very powerful packages in R that handle this kind of thing: ade4 and vegan. Have a thorough look at both of them. You should be looking at Principal Coordinate Analysis (Classical Scaling) and Non Metric Multidimensional Scalin

Re: [R] Dissimilarity

2007-06-21 Thread Mark Difford
chool french but anyway, I would like to have a > look at this lecture notes, but I can not open the link you wrote me. > Ah sorry now the link works. > > Greetings and thanks a lot. > > Birgit > > Hey Gavin, > I found it funny that your institute is in the Gower S

Re: [R] Question about PCA with prcomp

2007-07-02 Thread Mark Difford
Hi James, Have a look at Cadima et al.'s subselect package [Cadima worked with/was a student of Prof Jolliffe, one of _the_ experts on PCA; Jolliffe devotes part of a Chapter to this question in his text (Principal Component Analysis, pub. Springer)]. Then you should look at psychometric stuff:

Re: [R] Question about PCA with prcomp

2007-07-02 Thread Mark Difford
andhealth/People/Faculty/Varadhan.html > > > > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mark Difford > Sent: Monday, July 02,

Re: [R] Question about PCA with prcomp

2007-07-02 Thread Mark Difford
EMAIL PROTECTED] On Behalf Of Ravi Varadhan > Sent: Monday, 2 July 2007 1:29 PM > To: 'Patrick Connolly' > Cc: r-help@stat.math.ethz.ch; 'Mark Difford' > Subject: Re: [R] Question about PCA with prcomp > > The PCs that are associated with the smaller eigenvalu

Re: [R] histogram with absolute figures

2007-07-10 Thread Mark Difford
In the absence of a data set, it may help to read the help file carefully: ?hist Note, in particular, that the argument freq defaults to TRUE "if and only if breaks are equidistant (and probability is not specified)." Regards, Mark. Sarah Goslee wrote: > > Well, how about an example of what

Re: [R] type III ANOVA for a nested linear model

2007-07-11 Thread Mark Difford
Indeed! And, apropos of the expression, "to be Ripleyed" (and so be condemned to eating cookies for a long, long time), what about being "Billasted"? BestR, Mark. Simon Blomberg-4 wrote: > > I second the nomination! > > Simon. > > On Tue, 2007-07-10 at 10:02 -0600, Greg Snow wrote: >> I nom

Re: [R] Subsetting problem

2007-07-12 Thread Mark Difford
Hi Massimo, Professor Ripley has given you your answer. It may help you further to know that factor levels aren't automatically dropped when you subset a data set; you have to do it manually. Some time ago I scrounged the following command from Andy Liaw's randomForest package: it removes all e

Re: [R] Trend lines on a scatterplot matrix

2007-07-20 Thread Mark Difford
Hi Alan, There is a good, ready made, way of doing this, with additional options, in Professor Fox's car package. See:--- require(car) ?scatterplot.matrix Cheers, Mark. Alan S Barnett-2 wrote: > > I'm using pairs() to generate a scatterplot matrix; > > pairs(~ > Fuzzy.gray.white.ratio+Fuz

[R] Effect size, interactions, and main effects (Stats Question) [ffmanova]

2007-07-21 Thread Mark Difford
Dear List Members, I would very much appreciate any pointers you could give me on the following matter: Main Question: To what extent does the "rule" that it is unreasonable to talk about main effects if there are significant interactions in a model depend upon effect size [of the significant in

Re: [R] Effect size, interactions, and main effects (Stats Question) [ffmanova]

2007-07-21 Thread Mark Difford
Hi Robert, Thank you for your reply, and for what appears to be some good/sound practical advice on managing this kind of problem. Best Regards, Mark. Robert A LaBudde wrote: > > Statistical significance is "detectability", and depends upon the > size of the sample as well as the effect. A

Re: [R] crimtab related question

2007-07-24 Thread Mark Difford
Hi Jean, You haven't yet had a reply from an authoratitive source, so here is my tuppence worth to part of your enquiry. It's almost certain that the "receiving box" is a receptacle into which tags were placed after they had been drawn and the inscribed measurement noted down. Measurements on t

Re: [R] Data mining tools

2007-07-31 Thread Mark Difford
Hi GĂ©rald, I can't help you directly, but you haven't yet had a reply, so... Googling, as you have found, will waste your time if you know more that you Google for. Clementine's quite unusual --- in the field of statistical methods --- so target that. Take the main Stats methods journals and s

[R] Fix for augPred/gsummary problem (nlme library)

2006-05-17 Thread Mark Difford
ute your lme() statement &c on the object, e.g.: test.1 <- lme(Chla ~ PO4, random=~1|Site, data=obj)## or simply: lme(obj) augPred(test.1) plot(augPred(test.1)) (Note that if you are using a data.frame() as your data object you will need to supply a 'primary' statemen

Re: [R] nested design

2006-06-05 Thread Mark Difford
Jorn, For your model, model<-lme(Biomass~Age,random=~1|Age/Stand) think about nesting age in stand (doesn't that makes more sense, anyway ?). If you're lucky the NaN will zip. So, do model <- lme( Biomass ~ Age, random = ~ 1 | Stand/Age I've had a similar problem with unbalanced data when I

Re: [R] RuleFit & quantreg: partial dependence plots; showing an effect

2006-12-20 Thread Mark Difford
iable ? Thank you inav for your help. Regards, Mark Difford. ----- Mark Difford Ph.D. candidate, Botany Department, Nelson Mandela Metropolitan University, Port Elizabeth, SA. __ R-help@stat.math.et

Re: [R] RuleFit & quantreg: partial dependence plots; showing an effect

2006-12-21 Thread Mark Difford
Dear Professors Koenker and Varadhan, Thank you for your detailed and engaging replies. The (very) muddy waters clear slowly, but only if I keep moving my hands! Kind regards, Mark Difford. Mark Difford Ph.D. candidate, Botany Department, Nelson Mandela Metropolitan University, Port

Re: [R] contingency table analysis; generalized linear model

2007-01-09 Thread Mark Difford
y restricted or natural cubic splines. Thank you in advance for your help. Regards, Mark Difford. ------- Mark Difford Ph.D. candidate, Botany Department, Nelson Mandela Metropolitan University, Port Elizabeth, SA. _