[R] Font size and window size

2007-03-19 Thread Jason Horn
I'm using R on Mac OS X and I have a question. When re-sizing a quartz window, the fonts sizes and line weights in a graphic all stay the same - the distances between them just keep getting larger. Is there a way to change this behavior (perhaps with graphics parameters) so that when

[R] Adding bars to the right of existing ones using barplot

2007-03-13 Thread Jason Horn
I'm trying to create a barplot that has two sets of data next to each other. I'm using barplot with the add=TRUE option, but this simply adds the second dataset on top of the first, obscuring it. How do I add the new data to the right on the existing barplot so that both sets are

[R] Replace individual values in a data frame with NA

2007-02-09 Thread Jason Horn
I'd like to replace a value in a data frame with an NA, but can't figure out how. For example, say you have a-c(1,2,3,4) b-c(5,6,7,8) data-data.frame(a,b) Now, how would you set the third row of the second column ( data [[3,2]] ) to NA? I have tried all types of permutations with is.na,

[R] remove component from list or data frame

2007-02-08 Thread Jason Horn
Sorry to ask such a simple question, but I can't find the answer after extensive searching the docs and the web. How do you remove a component from a list? For example say you have: lst-c(5,6,7,8,9) How do you remove, for example, the third component in the list? lst[[3]]]-NULL generates

[R] plotting 95% confidence bands on a simple linear regression model from lm()

2006-10-20 Thread Jason Horn
What's the best / simplest way to create 95% confidence bands for a model created with lm() that can be plotted around teh regression line? I've looked everywhere for this - I guess I must be missing something. - Jason __

[R] Using a string as a variable name

2006-10-20 Thread Jason Horn
Is it possible to use a string as a variable name? For example: foo=var1 frame$foo # frame is a data frame with with a column titled var1 This does not work, unfortunately. Am I just missing the correct syntax to make this work? - Jason __

[R] Select one row of a data frame

2006-10-18 Thread Jason Horn
Can anyone tell me how to select just one row of a data frame? Say I want just the third row, what would be the syntax? Every notation I try just gives me columns. Thanks - Jason __ R-help@stat.math.ethz.ch mailing list

[R] One way ANOVA with NO model

2006-03-10 Thread Jason Horn
I'd like to do a simple one-way ANOVA comparing the means of 6 groups. But it seems like the only way to do an ANOVA in R is to specify some sort of model, where there is an outcome or dependent variable that is a function of independent variables (linear model). But I don't have a

Re: [R] One way ANOVA with NO model

2006-03-10 Thread Jason Horn
that there is no significant variation between the groups. Hope this helps. Regards, Adai On Fri, 2006-03-10 at 11:24 -0500, Jason Horn wrote: I'd like to do a simple one-way ANOVA comparing the means of 6 groups. But it seems like the only way to do an ANOVA in R is to specify some sort of model

[R] POSIX time zone codes

2006-03-07 Thread Jason Horn
The manual entry for as.POSIX says this about time zone codes... Usage as.POSIXct(x, tz = ) tz A timezone specification to be used for the conversion... but it fails to mention what these specifications are. So far, I have tried... as.POSIX(x, tz=UTC) ... works, gives UTC times

Re: [R] POSIX time zone codes

2006-03-07 Thread Jason Horn
Whoops, [EDIT] as.POSIX(x, tz=UTC) ... works, gives UTC times as.POSIX(x, tz=EST) ... works, gives EST times as.POSIX(x, tz=CST) ... does NOT work, gives UTC times [/EDIT] On Mar 7, 2006, at 8:05 AM, Jason Horn wrote: as.POSIX(x, tz=UTC) ... works, gives UTC times as.POSIX(x, tz=UTC

Re: [R] POSIX time zone codes

2006-03-07 Thread Jason Horn
if that works on your system. On 3/7/06, Jason Horn [EMAIL PROTECTED] wrote: Whoops, [EDIT] as.POSIX(x, tz=UTC) ... works, gives UTC times as.POSIX(x, tz=EST) ... works, gives EST times as.POSIX(x, tz=CST) ... does NOT work, gives UTC times [/EDIT] On Mar 7, 2006, at 8:05 AM, Jason

[R] How to change time zones?

2006-03-07 Thread Jason Horn
Say you have a POSIX object that is in UTC. How do you change the values to another timezone? If I do this: times - strptime(times, %H:%M:%S) times1 - as.POSIXct(times, tz=UTC) times2 - as.POSIXct(times, tz=CDT6CST) times1 id UTC, but times2 is still UTC, not CTD. Why? Is the only was to

[R] Length of a vector of POSIX objects reported incorrectly?

2006-03-06 Thread Jason Horn
I have a vector of POSIX times/dates (called times) that I want to plot. But I'm having trouble because R reports the length of the vector incorrectly. Can someone help me figure out what's going on here? This code print(times) print(class(times)) print(length(times)) Produces

[R] non-zero sequence of numbers

2005-10-11 Thread Jason Horn
Can anyone think of a way to create a pretty() sequence that excludes zero? Or a way to remove the zero from a sequence after using pretty()? Thanks, - Jason Jason Horn Boston University Department of Biology 5 Cumington Street Boston, MA 02215 [EMAIL PROTECTED] office: 617 353 6987 cell

[R] R.app window size

2005-10-10 Thread Jason Horn
text resize proportionately with window size? Thanks, - Jason Jason Horn Boston University Department of Biology 5 Cumington Street Boston, MA 02215 [EMAIL PROTECTED] office: 617 353 6987 cell: 401 588 2766 [[alternative HTML version deleted

[R] circular statistics plotting

2005-10-06 Thread Jason Horn
Hi all, I'm new to the list here, and I have what I think is a simple question. Using the circular package, is there a way to plot the mean and variance on top of a rose diagram or other plot of the data? Thanks in advance... - Jason Jason Horn Boston University Department of Biology 5