[R] How to add example data to R package

2010-06-18 Thread wenjun zheng
Dear R Users, I want to add an data in raw type to my package, so it can not be loading by data(), and if I put it in the 'data' subdirectory, it will be missed after the package built. How to put a raw data into a package? Any suggestions will be appreciated. -- Wenjun

[R] Symbols in R

2010-06-08 Thread wenjun zheng
Hi R Users, I want to distinguish different condition by different symbols by pch in function grid.points, but the symbols needed should be with solid or hollow, in this way only 21 to 25 in pch worked, is there any other symbols could be used like this? or does it exist any other way to draw

[R] build Mac distribution for R package

2010-04-02 Thread wenjun zheng
Dear R users, can somebody give me some suggestions about how to build Mac distribution on my own Mac OS Thanks -- Wenjun [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Rename R package name on R-Forge

2010-02-04 Thread wenjun zheng
Hi, R Users, Can maintainer rename the package on F-Forge? Any suggestions will be appreciated. Wenjun -- Wenjun [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] extract R-squared and P-value from lm results

2010-01-29 Thread wenjun zheng
Hi, R Users I find a problem in extracting the R-squared and P-value from the lm results described below (in Italic), *Residual standard error: 2.25 on 17 degrees of freedom* *Multiple R-squared: 0.001069, Adjusted R-squared: -0.05769 * *F-statistic: 0.01819 on 1 and 17 DF, p-value: 0.8943 *

Re: [R] extract R-squared and P-value from lm results

2010-01-29 Thread wenjun zheng
Thanks, I get it. Wenjun, ZHENG 2010/1/29 Dennis Murphy djmu...@gmail.com x - 1:10 y - 2 + 1.5 * rnorm(10, x, 2) m - lm(y ~ x) summary(m)$r.squared [1] 0.6056889 anova(m)$'Pr(F)' [1] 0.0080142NA Components of the summary() and anova() methods of lm() can be extracted. See

[R] MacOS X binary of package cairoDevice

2010-01-05 Thread wenjun zheng
Dear Michael and all R users, I find that there's no MacOS X binary of package cairoDevice on CRAN now. Can you or anybody else give me an older MacOS X edition for cairoDevice. Thank you. -- Wenjun [[alternative HTML version deleted]] __

[R] How to uninstall R packages

2010-01-04 Thread wenjun zheng
Dear all, I am puzzled that how can i uninstall a R package that have been installed earlier (especially in MacOS). Any suggestion will be appreciated. -- Wenjun [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] levelplot

2009-11-18 Thread wenjun zheng
Hi, R Users When I use the default package lattice, I found a problem about adjusting the Figure Margin that can be changed by par(mai or mar) in traditional plots. So it's hard for me to add top and right axis. Any suggestions will be appreciated. -- Wenjun [[alternative HTML version

Re: [R] package lme4

2009-11-03 Thread wenjun zheng
Thanks,Douglas, It really helps me a lot, but is there any other way if I want to show whether a random effect is significant in text file, like P value or other index. Thanks very much again. Wenjun. 2009/11/2 Douglas Bates ba...@stat.wisc.edu On Sun, Nov 1, 2009 at 9:01 AM, wenjun zheng

Re: [R] package lme4

2009-11-03 Thread wenjun zheng
On Sun, Nov 1, 2009 at 9:01 AM, wenjun zheng wjzhen...@gmail.com wrote: Hi R Users, When I use package lme4 for mixed model analysis, I can't distinguish the significant and insignificant variables from all random independent variables. Here is my data and result: Data

[R] package lme4

2009-11-01 Thread wenjun zheng
Hi R Users, When I use package lme4 for mixed model analysis, I can't distinguish the significant and insignificant variables from all random independent variables. Here is my data and result: Data: Rice-data.frame(Yield=c(8,7,4,9,7,6,9,8,8,8,7,5,9,9,5,7,7,8,8,8,4,8,6,4,8,8,9),

[R] package nlme

2009-10-12 Thread wenjun zheng
Hi R Users, When I use package nlme for linear model with random effects, there exists errors and I don't know the data structure of lme. Here is my data: Rice-data.frame(Yield=c(8,7,4,9,7,6,9,8,8,8,7,5,9,9,5,7,7,8,8,8,4,8,6,4,8,8,9),