[R] How to auto-scale cex of y-axis labels in lattice dotplot?

2007-07-25 Thread Kevin Wright
When I create a dotplot in lattice, I frequently observe overplotting of the labels along the vertical axis. On my screen, this illustrates overplotting of the letters: windows() reps=6 dat=data.frame(let=rep(letters,each=reps), grp=rep(1:reps, 26), y=runif(26*reps)) dotplot(let~y|grp, dat) Is

[R] Confidence interval for coefficient of variation

2007-06-14 Thread Kevin Wright
Kevin Wright confint.cv <- function(x,alpha=.05, method="modmckay"){ # Calculate the confidence interval of the cv of the vector x # Author: Kevin Wright # See: Vangel, Mark. Confidence Intervals for a Normal Coefficient # of Variation. American Statistician, Vol 15, No1, p.

Re: [R] Sorting dataframe by different columns

2007-06-08 Thread Kevin Wright
On the R wiki site there is a general-purpose function (sort.data.frame) that allows you to do this: sort(df, by=~ x-z) See: http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:sort Regards, Kevin On 6/8/07, Gunther Höning <[EMAIL PROTECTED]> wrote: > Dear list, > > I have a very shor

Re: [R] sorting data in R

2007-04-20 Thread Kevin Wright
:sort&s=sort%20data There are also some other tips on that page for sorting. Kevin Wright On 4/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi > > Best function for sorting which i have used and many in the community :-) > HTH Cheers > > sort.data.fram

Re: [R] using alpha transparency for lines in levelplot - SUMMARY

2007-03-29 Thread Kevin Wright
I reported a similar issue with Adobe Reader in a thread starting here: http://tolstoy.newcastle.edu.au/R/e2/devel/06/10/0706.html K Wright On 3/27/07, Michael Sumner <[EMAIL PROTECTED]> wrote: > Hello, thanks to Deepayan Sarkar for sorting me out on this one. > > The problem with transparent l

[R] Next useR conference date/location

2006-11-14 Thread Kevin Wright
Are there any tentative plans for the next useR conference? I ask because I will soon need to develop an expense budget for 2007 and wondered if the conference is switching to an annual meeting or will continue every two years. Thanks for any information K Wright ___

[R] lme4 and lmeSplines

2006-08-02 Thread Kevin Wright
lot of fitted values from lme4 is visually appealing, but the random effects from lme4 are peculiar--three are non-zero and the rest are essentially zero. Any help in getting lme4 + lmeSplines working would be appreciated. It is not unlikely that I have the lmer syntax wrong. Kevin Wright __

[R] Mixing grid and base graphics--need help understanding this quirk

2006-06-27 Thread Kevin Wright
uot;, gp=gpar(col="gray30"), just=c("left","bottom")) popViewport() Kevin Wright __ 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

[R] DSC 2005 proceedings?

2006-06-13 Thread Kevin Wright
This page: http://depts.washington.edu/dsc2005/ says the proceedings for DSC 2005 will be published online and that the papers were due in final form by September 2005. Anyone know if the proceedings have been published yet or when (if?) they will be published? Thanks. Kevin Wright

Re: [R] RODBC and Excel: Wrong Data Type Assumed on Import

2005-11-03 Thread Kevin Wright
ore here: http://www.dicks-blog.com/archives/2004/06/03/external-data-mixed-data-types/ 2. The gregmisc bundle has a different read.xls function that uses a Perl script (xls2csv) and seems to be safer with mixed-type columns. Requires a working version of Perl. Best, Kevin Wright The first col

[R] How to create a new data.frame with all possible observations

2005-10-24 Thread Kevin Wright
unty%in%state) Then I would like to create a data.frame that includes the missing observation for A + IA + P %in IA (trt + state + county %in% state) I currently use expand.grid to get all possible combinations of variables, then delete impossible combinations like "J %in IA". This wor

[R] Function sort.data.frame

2004-09-24 Thread Kevin Wright
d be used for matrix objects. Feedback is welcome. Kevin Wright sort.data.frame <- function(form,dat){ # Author: Kevin Wright # Some ideas from Andy Liaw # http://tolstoy.newcastle.edu.au/R/help/04/07/1076.html # Use + for ascending, - for decending. # Sorting is left

[R] Bookmarklet for searching R documentation

2004-06-21 Thread Kevin Wright
k, relax, and enjoy! Your mileage may vary, but I like this a lot. Thanks to the creator of the original "Search Amazon" bookmarklet. Best, Kevin Wright __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Mozilla search engine plugin for R java search applet?

2004-06-04 Thread Kevin Wright
ght also be relevant. Kevin Wright __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Outlier identification according to Hardin & Rocke (1999)

2004-05-26 Thread Kevin Wright
nction I have provided below and modify it to reproduce their results. Note: The mvtnorm package is required. Best, Kevin Wright outliers.id <- function(x, alpha=.05){ # See: Hardin & Rocke (1999), "The Distribution of Robust Distances" # http://handel.cipic.ucdavis.edu/

[R] Opening help pages in new tab of existing Mozilla Firebird

2004-05-26 Thread Kevin Wright
Subject pretty much says it all. I currently have options()$browser set to open help pages in Mozilla Firebird, but it starts a new window each time and I would like a new 'tab' in an existing window. Sorry if this is obvious, but I can't find anything

[R] PROC MIXED vs lme. Split-plot with heterogeneous variances.

2003-09-04 Thread Kevin Wright
> The model with only Male and Trt as fixed effects is the same in SAS and R. > > When I add Male:Trt interaction, the results of the tests of fixed effects are no > longer the same (comparing SAS and R) for Male, but are the same for Trt and > Male:Trt. > > Is my mo

[R] Looking for graphics/par cheat sheet

2003-07-03 Thread Kevin Wright
o the pare parameters than a text description. Kevin Wright __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help