Re: [R] Changing x-axis values displayed on histogram

2012-07-10 Thread jlwoodard
Perfect! Thanks so much, Sarah! -- View this message in context: http://r.789695.n4.nabble.com/Changing-x-axis-values-displayed-on-histogram-tp4636032p4636051.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailin

[R] Changing x-axis values displayed on histogram

2012-07-10 Thread jlwoodard
Is it possible to change the x-axis values in a histogram to reflect binned values? Here are my data: histexample<-c(6,7,7,8,8,8,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,13,13,13,14,14,14,15,16) hist(histexample) Now, I'll bin pairs of adjacent values together (e.g., 5-6, 7-8

Re: [R] Mean and individual growth curve trajectories

2010-10-31 Thread jlwoodard
Thank you so much, Michael. This solution is just what I was looking for. Many thanks! John -- View this message in context: http://r.789695.n4.nabble.com/Mean-and-individual-growth-curve-trajectories-tp3021672p3021746.html Sent from the R help mailing list archive at Nabble.com. ___

[R] Mean and individual growth curve trajectories

2010-10-31 Thread jlwoodard
I'm trying to understand how to plot individual growth curve trajectories, with the overall mean trajectory superimposed (preferably in a slightly thicker line, maybe in black) over the individual trajectories. Using the sleepstudy data in lme4, here is the code I have so far: library(lme4) libr

Re: [R] Help with Reshaping from Wide to Long

2010-07-18 Thread jlwoodard
Hi Phil and Jeff, Thanks so much for taking the time to help me solve this issue! Both approaches work perfectly. Each of your approaches helped me learn more about what R can do. I really appreciate your help! Very best regards, John -- View this message in context: http://r.789695.n4

Re: [R] Help with Reshaping from Wide to Long

2010-07-17 Thread jlwoodard
Tal, Thanks for the information. I actually did read through the help for the reshape package, though being relatively new to R, I don't quite understand the ins and outs of the command. I tried using the melt command: x<-melt(accuracy,id='Subject') but, it didn't give me anything different

[R] Help with Reshaping from Wide to Long

2010-07-17 Thread jlwoodard
I am trying to reshape data that are in the wide format into the long format. The design is a repeated-measures design, which combined 3 levels of shape (circle, square, triangle) with 3 levels of color (Blue, Red, Green), for a total of 9 variables. The wide data look like this (sorry I couldn'

[R] Error with write.table

2010-02-02 Thread jlwoodard
I was trying to save a data frame to an excel file using the following command: write.table(myData, file="myData.csv",sep=",", row.names=F) The command works for some data frames, but for other data frames, I get the following error: Error in if (inherits(X[[j]], "data.frame") && ncol(xj) > 1L)

[R] Within-group correlation confidence intervals

2009-09-18 Thread jlwoodard
I'm trying to obtain within-group correlations on a subset of variables. I first selected my variables using the following command: mydata$x<-mydata[c("iq","education","achievement")] I'd like to look at correlations among those variables separately for men and women. My gender variable in mydata

Re: [R] Selecting groups with R

2009-08-21 Thread jlwoodard
David Winsemius wrote: > > t.test expects two numeric vectors, not a numeric vector and a > grouping indicator. > > > t.test(dataset[dataset$Color=="RED", "Score"], dataset[dataset > $Color=="WHITE", "Score"] ) > > Thank you again, David! I also just realized I could have replaced the

Re: [R] Selecting groups with R

2009-08-21 Thread jlwoodard
Thank you David! David Winsemius wrote: > > > How did you do the "t-test"? > > t.test(Score,Color) John -- View this message in context: http://www.nabble.com/Selecting-groups-with-R-tp25088073p25088342.html Sent from the R help mailing list archive at Nabble.com. _

[R] Selecting groups with R

2009-08-21 Thread jlwoodard
I have a data set similar to the following: Color Score RED 10 RED 13 RED 12 WHITE 22 WHITE 27 WHITE 25 BLUE 18 BLUE 17 BLUE 16 and I am trying to to select just the values of Color that are equal to RED or WHITE, excluding the BLUE. I've tried the following: m

[R] Trouble installing packages on Macintosh OS-X 10.5.6

2009-05-02 Thread jlwoodard
I just upgraded my version of R from 2.8.1 to 2.9.0. After doing so, I now have problems using the package installer to reinstall all my packages. Some download and install without problems, but for others, I get the spinning pinwheel and after even 10 minutes, nothing is downloaded. R stops re