Re: [R] Postscript fonts

2006-08-05 Thread Prof Brian Ripley
On Sat, 5 Aug 2006, Erich Neuwirth wrote: How can I find out what fonts are available for par(family= for the postscript device? This is dynamic: for the current value names(postscriptFonts()) [1] serifsans mono [4] symbol AvantGarde

[R] formating for dist function

2006-08-05 Thread Ffenics
Hi there I have a list that looks like this object1 object1 78 object1 object2 45 object1 object3 34 object1 object4 45 object2 object2 89 object2 object3 32 object2 object4 13 but i want to create a matrix like this in order to use the dist function of R object1 object2

Re: [R] Postscript fonts

2006-08-05 Thread Erich Neuwirth
Thanks, The following piece of code demonstrates a problem I still have. pdf(file=fonttest.pdf,fonts=c(Helvetica)) plot(1:10,main=,xlab=) par(family=Helvetica,font=1) title(main=Helvetica) par(family=Helvetica,font=2) title(sub=Helvetica-Bold) par(family=Helvetica,font=3)

[R] Interpretation of call to aov()

2006-08-05 Thread JeeBee
Hi all, I've been reading about aov() at http://www.psych.upenn.edu/~baron/rpsych/rpsych.html and http://davidmlane.com/hyperstat/intro_ANOVA.html and I try to use this test in experiments with my simulator. What I would like Anova to tell me is whether the differences I see when plotting the

Re: [R] Interpretation of call to aov()

2006-08-05 Thread JeeBee
Or, perhaps I can use Error(subject/(method * problem)) where subject = paste(method, problem) Because I repeated each simulation several times for different problems of the same problem. This gives me the following output: summary(aov(performance ~ method * problem + Error(subj/(method *

Re: [R] question

2006-08-05 Thread JeeBee
Hi Jessica, I think you want to use names() See: ?names ?colnames (or rownames) If not, it's perhaps a good idea to send us a more complete example. JeeBee. On Fri, 04 Aug 2006 17:12:24 +0200, Jessica G. wrote: How to convert a rowname vector of numbers into a real column of the matrix,

Re: [R] formating for dist function

2006-08-05 Thread Gabor Grothendieck
Here are three ways: # read in data Lines - object1 object1 78 object1 object2 45 object1 object3 34 object1 object4 45 object2 object2 89 object2 object3 32 object2 object4 13 DF - read.table(textConnection(Lines)) # 1 - xtabs xt - as.matrix(xtabs(V3 ~., DF)) # 2 - reshape wide - reshape(DF,

[R] R GUI for Mac OS X bug

2006-08-05 Thread John Christie
Hi, I found a highly reproduceable bug in the version that comes with 2.3.1 and I just thought I'd let the authors know. Pressing and then tab instantly crashes it every time. __ R-help@stat.math.ethz.ch mailing list

[R] AIC for lognormal model

2006-08-05 Thread Andreas Beyerlein
Dear all, I want to compare some different models for a dataset by QQ plots and AIC. I get the following AICs: - linear model: 19759.66 - GAMLSS model: 18702.7 - linear model with lognormal response: -7862.182 The QQ plots show that the lognormal model fits better than the linear model, but

[R] Kmeans - how to display results

2006-08-05 Thread Ffenics
Hi there I'm very new as regards to R. I have managed to work out how to use dist and kmeans but am now wondering how best to display the results from kmeans in a graphical form. If anyone has any general advice/tips, I would be most grateful. Thanks [[alternative HTML version deleted]]

Re: [R] Kmeans - how to display results

2006-08-05 Thread Andrej Kastrin
What's wrong with cross-tabs? __ 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

Re: [R] AIC for lognormal model

2006-08-05 Thread Prof Brian Ripley
On Sat, 5 Aug 2006, Andreas Beyerlein wrote: Dear all, I want to compare some different models for a dataset by QQ plots and AIC. I get the following AICs: - linear model: 19759.66 - GAMLSS model: 18702.7 - linear model with lognormal response: -7862.182 The QQ plots show that the

Re: [R] Kmeans - how to display results

2006-08-05 Thread Prof Brian Ripley
There are worked examples in MASS (the book, see the FAQ). On Sat, 5 Aug 2006, Ffenics wrote: I'm very new as regards to R. I have managed to work out how to use dist and kmeans but am now wondering how best to display the results from kmeans in a graphical form. If anyone has any general

[R] R CMD check and RUnit

2006-08-05 Thread Gorjanc Gregor
Hi! I appologize for crossposting, but this might be of broader interest. In case you are interested in fusing RUnit with R CMD check under unix alike OS, here is one way of doing/hacking this. My aim was to perform unit tests: (1) during R CMD check (2) at any other time Say you have a

[R] ordering by a datframe date

2006-08-05 Thread Bob Green
I am hoping for some advice regarding ordering a dataframe, by date. The dataframe is in the format below. $story $datepub story10 1 April 1999 story 901 March 2002 story 3710 July 1985 I want to reorder the entire dataframe so the earliest story is first, and

Re: [R] ordering by a datframe date

2006-08-05 Thread Gabor Grothendieck
Try this: Lines - story,datepub story10,1 April 1999 story 90,1 March 2002 story 37,10 July 1985 DF - read.csv(textConnection(Lines)) DF[order(as.Date(DF$datepub, %d %B %Y)),] On 8/6/06, Bob Green [EMAIL PROTECTED] wrote: I am hoping for some advice regarding ordering a dataframe, by date.