Re: [R] ggplot facet label font size

2006-08-06 Thread Deepayan Sarkar
On 8/3/06, Walker, Sam [EMAIL PROTECTED] wrote: This works OK, but there is some extra spacing between the panels, the top axis and the strip on the top, and the left labels and panel. How can I remove these extra spaces? This turns out to be surprisingly easy (surprising to me at least):

[R] paired t-test. Need to rearrange data?

2006-08-06 Thread Henrik Parn
Dear all, I have received some data arranged like this: # original data id - rep(letters[1:6], each=2) time - as.factor(rep(1:2, 6)) y - as.vector(replicate(6, c(rnorm(n=1, mean=1), rnorm(n=1, mean=2 test.data - data.frame(id, time, y) test.data I would like to perform a paired t-test of

[R] [R-pkgs] Reshape package: new version 0.7

2006-08-06 Thread hadley wickham
Reshape 0.7 === Reshape is an R package for flexibly restructuring and aggregating data. It is inspired by Excel's pivot tables, and it makes it very easy to view your data the way you want. The reshape package (along with ggplot) received the John Chambers Award for Statistical

Re: [R] paired t-test. Need to rearrange data?

2006-08-06 Thread Prof Brian Ripley
On Sun, 6 Aug 2006, Henrik Parn wrote: Dear all, I have received some data arranged like this: # original data id - rep(letters[1:6], each=2) time - as.factor(rep(1:2, 6)) y - as.vector(replicate(6, c(rnorm(n=1, mean=1), rnorm(n=1, mean=2 test.data - data.frame(id, time, y)

[R] extractAIC using surf.ls

2006-08-06 Thread Yan Wong
Although the 'spatial' documentation doesn't mention that extractAIC works, it does seem to give an output. I may have misunderstood, but shouldn't the following give at least the same d.f.? library(spatial) data(topo, package=MASS) extractAIC(surf.ls(2, topo)) [1] 46. 437.5059

[R] Beamer and Sweave

2006-08-06 Thread Michael Kubovy
Dear R-helpers, Here is a minimal .Rnw file which shows that builds do not work in frames that contain chunks of verbatim code: \documentclass[]{beamer} \author{} \date{} \title{Title} \begin{document} \frame[containsverbatim]{\frametitle{Here the build doesn't work} \begin{enumerate}[+-]

[R] Take random sample from class variable

2006-08-06 Thread Muhammad Subianto
Dear all, Suppose I have a dataset like below, then I take for example, 100 random sample class variable where contains yes and no respectively, 70% and 30%. I need a new 100 random sample from mydat dataset, but I can't get the result. Thanks you very much for any helps. Best, Muhammad Subianto

Re: [R] Beamer and Sweave

2006-08-06 Thread Deepayan Sarkar
On 8/6/06, Michael Kubovy [EMAIL PROTECTED] wrote: Dear R-helpers, Here is a minimal .Rnw file which shows that builds do not work in frames that contain chunks of verbatim code: \documentclass[]{beamer} \author{} \date{} \title{Title} \begin{document}

Re: [R] Beamer and Sweave

2006-08-06 Thread Michael Kubovy
Thanks Deepayan, \begin{frame}[fragile] ... \end{frame} works, but \frame[fragile]{ ... } doesn't. \frame[containsverbatim]{ ... } works when there's no build, but there's a \begin{Schunk} ... \end{frame} in the frame body. On Aug 6, 2006, at 4:21 PM, Deepayan Sarkar wrote: On 8/6/06,

Re: [R] R GUI for Mac OS X bug

2006-08-06 Thread Graham Watt-Gremm
In my case R.app Version 1.14 (2129), Tiger (10.4.7), R.app burps the following warning message, but does not crash: 2006-08-06 15:01:05.644 R[1822] -[NSCFString substringFromIndex:] called with out-of-bounds index. For apps linked on Tiger this will raise an exception. For earlier apps it

[R] removing intercept from lm() results in oddly high Rsquared

2006-08-06 Thread Joseph LeBouton
Can anyone help me understand why an lm model summary would return an r.squared of ~0.18 with an intercept term, and an r.squared of ~0.98 without the intercept? The fit is NOT that much better, according to plot.lm: residuals are similar between the two models, and a plot of observed x

[R] classification tables

2006-08-06 Thread Taka Matzmoto
Dear R-users I have two vectors. One vector includes true values and the other vector has estimated values. Values are all integers from 1 to 4. For example, x - c(1,2,3,4,2,3,3,1,2,3) y - c(2,1,3,4,1,3,3,2,2,3) I would like to a classfication table x by y. With the table, I would like to

[R] how to generate this simulation dataset in R

2006-08-06 Thread zhijie zhang
Dear Rusers, I want to compare the different methods of variable selction in linear/logistic regression, so i want to generate simulated datasets, how to do that? e.g. response variable:y independent variables:x1-x4 residual item:e the theoretical formula is: y=2.1+0.1*x1+0.2*x2 x3,x4 are not

[R] Source installation error: gfortran and gcc disagree on int and double ...

2006-08-06 Thread Mike
... configure: error: Maybe change CFLAGS or FFLAGS? Dear list, This problem has been posted before (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/7982.html), but suggestions did not help. My machine: AMD Duron 800 MHz, MandrivaLinux 10.2, gcc (and gfortran): 4.0.1, R source: 2.3.1. I had