Re: [R] Help with removing extra legend elements in ggplot

2013-11-24 Thread jwd
On Tue, 19 Nov 2013 16:44:11 -0700 Matthew Van Scoyoc wrote: You want to consider this as a programming bug in your code. Executing each line sequentially shows that the problem appears in the second line: nmds.fig + geom_point(aes(color = VegType, shape = VegType, size = 10)) ?aes() and ?geom

Re: [R] stack data (from rows to column)

2013-11-24 Thread arun
HI, Try:  library(reshape2)  melt(data,measure.vars=c("t1","t2"),var="ind") A.K. On Sunday, November 24, 2013 9:31 PM, Kristi Glover wrote: I was just wondering how to stack values of columns to rows. Would you give me some idea how I can stack? I just want to stack columns 2 and 3 but not

[R] stack data (from rows to column)

2013-11-24 Thread Kristi Glover
I was just wondering how to stack values of columns to rows. Would you give me some idea how I can stack? I just want to stack columns 2 and 3 but not column1. The column 1 is supposed to be repeated. I was able to stack using "stack" but I could not repeat the column 1. For example I have da

Re: [R] Plotting multiple trends on one graph

2013-11-24 Thread Jim Lemon
>> >> Hello all, >> >> I am tracking hundreds of animals through a system with multiple timing >> points. I want to graph the movement of individuals through the whole >> array on one graph, but I can't figure out how to do that. An example >> of >> my data is below. Basically for each 'TagID',

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread John Sorkin
Mailing list vs. stack overflow, I have no opinion, but beginners list NO! I was a beginner at one time and the mailing list worked just fine. I see no reason to divide our efforts across two lists (be they mailing lists or stack overflow). John John David Sorkin M.D., Ph.D. Professor of Medici

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread memilanuk
On 11/24/2013 12:04 PM, Rich Shepard wrote: On Sun, 24 Nov 2013, Yihui Xie wrote: Mailing lists are good for a smaller group of people, and especially good when more focused on discussions on development (including bug reports). The better place for questions is a web forum. I disagree. Ma

Re: [R] Plotting multiple trends on one graph

2013-11-24 Thread Duncan Mackay
Hi Natalie Here is an option using lattice. I think below will get you some way to what you want This is your data formatted. in future please dput your data as your data was scrambled. # dput(dat) dat <- structure(list(TagID = c(4926L, 4926L, 4926L, 4926L, 4926L, 4926L, 4926L, 4926L, 4926L, 492

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread Duncan Murdoch
On 13-11-24 5:42 PM, Steve Lianoglou wrote: Hi, On Sun, Nov 24, 2013 at 1:36 PM, Duncan Murdoch wrote: On 13-11-24 4:13 PM, Yihui Xie wrote: I do not see how it can be illegal to download and duplicate the posts, since all the content is licensed under CC BY-SA. I might have missed something

Re: [R] persp3d and rsm models

2013-11-24 Thread Erin Hodgess
Found it: here is the website: http://stla.overblog.com/archive/2013-03/ On Sun, Nov 24, 2013 at 5:15 PM, Erin Hodgess wrote: > Dear R People: > > Has anyone used persp3d with rsm, please? I've used it with persp, and > thought I would check here to see if anyone had put things together > suc

[R] persp3d and rsm models

2013-11-24 Thread Erin Hodgess
Dear R People: Has anyone used persp3d with rsm, please? I've used it with persp, and thought I would check here to see if anyone had put things together successfully before I spent time on it. Thanks a lot in advance! Sincerely, Erin -- Erin Hodgess Associate Professor Department of Compute

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread Steve Lianoglou
Hi, On Sun, Nov 24, 2013 at 1:36 PM, Duncan Murdoch wrote: > On 13-11-24 4:13 PM, Yihui Xie wrote: >> >> I do not see how it can be illegal to download and duplicate the >> posts, since all the content is licensed under CC BY-SA. I might have >> missed something there: http://stackexchange.com/le

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread Rich Shepard
On Sun, 24 Nov 2013, Yihui Xie wrote: Mailing lists are good for a smaller group of people, and especially good when more focused on discussions on development (including bug reports). The better place for questions is a web forum. I disagree. Mail lists push messages to subscribers while we

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread Rich Shepard
On Sun, 24 Nov 2013, Bert Gunter wrote: Would it be useful, then, to establish an R-beginners list specifically to absorb this traffic and free up R-help from what I would say was its original intent, to provide a forum for serious, more dedicated R users (Again, no criticism is intended here)?

Re: [R] Inconsistent results between caret+kernlab versions

2013-11-24 Thread Andrew Digby
Hi Max, Here's a bit more information regarding the 'memory not mapped' errors which occur in caret. 1. The segfault only occurs when knitting a Markdown file in RStudio. When the code is run 'normally' in R, everything's fine. 2. The error is very hard to replicate! It only occurs when the fo

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread Duncan Murdoch
On 13-11-24 4:13 PM, Yihui Xie wrote: I do not see how it can be illegal to download and duplicate the posts, since all the content is licensed under CC BY-SA. I might have missed something there: http://stackexchange.com/legal If that is really the case, I think I will have to reconsider if I sh

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread Yihui Xie
I do not see how it can be illegal to download and duplicate the posts, since all the content is licensed under CC BY-SA. I might have missed something there: http://stackexchange.com/legal If that is really the case, I think I will have to reconsider if I should use it any more. Regards, Yihui --

[R] testing for bimodal and for dip in between modes in R

2013-11-24 Thread Felix Breden
Hi I have distributions that are typically bimodal (see attached .pdf), and I would like to test for bimodality, and then estimate the point between the two modes, the dip in the distributions. any help would be greatly appreciated. thanks felix m66.junction.aln.pairwise.histogram.pdf Descript

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread Duncan Murdoch
On 13-11-24 2:04 PM, Yihui Xie wrote: I'm not aware of a discussion on this, but I would say no. Fragmentation is bad. Further fragmentation is worse. TL;DR = Actually I'd say all mailing lists except r-devel should be moving to StackOverlow in the future (disclaimer: I'm not affiliated wit

Re: [R] create a new dataframe with intervals and computing a weighted average for each of its rows

2013-11-24 Thread Jeff Newmiller
Well, in his defense, he did provide quite a bit of R code, and did use a data.frame function to build a sample input data frame, so there was some effort made to communicate. Unfortunately, after inserting newlines in the code that were demolished by the HTML, the code still does not run becau

[R] Creating a set that has line of best fit y=3+2x so that SST, SSR, SSE are whole numbers

2013-11-24 Thread David Arnold
I wanted to find a set (x,y) of integers so that their line of best fit was y = 3 + 2x. So I thought I'd be losing 2 degrees of freedom and chose 1,2,3,4, and x for my explanatory data and 3, 8, 8, 12, and y for my response data. I then used b = (n sum(xy) - sum(x)sum(y))/(n sum(x^2) - (sum(x)

Re: [R] Should there be an R-beginners list?

2013-11-24 Thread Yihui Xie
I'm not aware of a discussion on this, but I would say no. Fragmentation is bad. Further fragmentation is worse. TL;DR = Actually I'd say all mailing lists except r-devel should be moving to StackOverlow in the future (disclaimer: I'm not affiliated with it). Mailing lists are good for a smal

[R] Plotting multiple trends on one graph

2013-11-24 Thread Natalie Houghton McNair
> > Hello all, > > I am tracking hundreds of animals through a system with multiple timing > points. I want to graph the movement of individuals through the whole > array on one graph, but I can't figure out how to do that. An example of > my data is below. Basically for each 'TagID', I want to

[R] Should there be an R-beginners list?

2013-11-24 Thread Bert Gunter
Folks: If this has been previously discussed and settled, please say so and refer me to the discussion. If you believe this to be inappropriate or otherwise frivolous, also please say so, as I do not wish to waste your time or this space. I write as a long time reader and sometimes contributor to

Re: [R] Problems dealing with matrices

2013-11-24 Thread arun
Hi Halim, I guess this works for you.  Modifying Jeff's solution: volinp<-c(0,0.000467,0.002762,0.008621,0.020014,0.038907,0.067094) vol1 <- dcmat %*% (volmat +wt) for(idx in seq_along(volinp)[-1]){  vol1 <- cbind(vol1,dcmat %*% (vol1[,idx-1] + volinp[idx] *wt))  } #or vol <- matrix( NA, nrow=5,

Re: [R] Label point with (x,hat(y))

2013-11-24 Thread David Arnold
Thanks, that worked well. D. -- View this message in context: http://r.789695.n4.nabble.com/Label-point-with-x-hat-y-tp4681049p4681065.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.et

Re: [R] How should I specify partially crossed random effects in lme?

2013-11-24 Thread Bert Gunter
You are more likely to get a useful response on the r-sig-mixed-models list rather than here. Cheers, Bert On Sat, Nov 23, 2013 at 9:04 PM, Pradeep Babu S. wrote: > Dear all, > I am new to R and would like your help with lme formula for partially > crossed random effect in a random-intercept, ra

Re: [R] create a new dataframe with intervals and computing a weighted average for each of its rows

2013-11-24 Thread Bert Gunter
This post is complete garbage, and a great example of why not bothering to read or follow the posting guide will cause a post to be ignored. 1. It was not posted in plain text as the posting guide asks. 2. dput() was not used to pass example data 3. It appears the OP has not done due diligence b

[R] create a new dataframe with intervals and computing a weighted average for each of its rows

2013-11-24 Thread Luis Miguel Cerchiaro Barros
I need you help with this problem, I have a data-frame like this: BHID=c(43,43,43,43,44,44,44,44,44) FROM=c(50.9,46.7,44.2,43.1,52.3,51.9,49.3,46.2,42.38) TO=c(46.7,44.2,43.1,40.9,51.9,49.3,46.2,42.38,36.3) AR=c(45,46,0.0,38.45,50.05,22.9,0,25,9)DF<-data.frame(BHID,FROM

Re: [R] Problems dealing with matrices

2013-11-24 Thread halim10-fes
Hi Jeff, Thank you very much for your response. Your code produced exactly the same as I described. I also like your idea of including 'wt' matrix. Can you please suggest me if the 'volinp' is not sequential? Consider a new 'volinp', like: volinp<-c(0,0.000467,0.002762,0.008621,0.020014,0.038

Re: [R] GotoBLAS2 with multiple cores

2013-11-24 Thread Prof Brian Ripley
This really is the wrong list (R-devel or R-SIG-HPC?): see the posting guide. But there are two issues. - How your BLAS controls its core usage (which is in its documentation). - How your third-party package interacts with a BLAS which uses multiple cores, and for that you need to ask the pac

[R] GotoBLAS2 with multiple cores

2013-11-24 Thread Safiye Celik
Hi, I am trying to use GotoBLAS2 on R 3.0 on Unix. I downloaded GotoBLAS2 source code from TACC web site, compiled it, and replaced libRblas.so with libgoto2.so, following the instructions at the link http://www.rochester.edu/college/gradstudents/jolmsted/files/computing/BLAS.pdf. The simple matri

Re: [R] Problems dealing with matrices

2013-11-24 Thread Jeff Newmiller
I think the following is a pretty literal translation from your description. Looks like a linear difference equation with a ramp forcing function. wt <- matrix( c(1,0,0,0,0 ), nrow=5 ) vol <- matrix( NA, nrow=5, ncol=length( volinp ) ) vol[ , 1 ] <- dcmat %*% ( volmat + wt ) for ( idx in volin