[R] dbFD computing distinct species wrong?

2010-04-13 Thread Sarah Berke
Hi everyone, I am working with the dbFD function of the FD package, and there's something funny happening with the value of sing.sp in the output. Basically, I have a species-function matrix and a community matrix. One site in particular has 6 species, 4 of which have identical functional

[R] Customizing ordination plots using symbols for factors

2010-04-06 Thread Sarah Berke
Hi, I could use a hand solving a fairly straightforward ordination plot problem: I am conducing NMDS on some community data for roughly 300 localities and 650 species. I have a community matrix, a species attribute matrix, and an environmental attributes matrix. After running metaMDS {vegan}

[R] jpeg() saving blank files?

2010-03-30 Thread Sarah Berke
Hi, I am having trouble saving graphics from R. jpeg() saves a file with the correct name to the correct directory, but it consists of a blank (white) jpeg with the specified dimensions--the image itself is not being saved. My code is jpeg(filename=myfile.jpg, height = 2.5,

Re: [R] jpeg() saving blank files?

2010-03-30 Thread Sarah Berke
                                        Statistical Computing Facility                                         Department of Statistics                                         UC Berkeley                                         spec...@stat.berkeley.edu On Tue, 30 Mar 2010, Sarah Berke wrote: Hi, I am having trouble saving

[R] Adding matrix rows that have the same name?

2010-03-23 Thread Sarah Berke
Does anyone know if there is an R function that will take a matrix like this jim 1 0 0 0 0 0 jim 0 1 0 0 0 0 jim 0 0 1 0 0 0 bob1 0 0 0 0 0 bob0 0 1 0 0 0 harry 0 0 1 0 0 0 harry 0 0 0 1 0 0 harry 0 0 0 0 1 0 harry 0 0 0 0 0 1