[R-sig-eco] report out by t.test

2014-03-23 Thread Michael Marsh
I test differences between frequency of hits of exotic annual forbs in plots on two sites, Q and WD. > Q<-c(13,0,10,2,0,0,1,0,0,1,5) > WD<-c(0,0,1,0,0,0,0,0,0,0,1) > t.test(Q,WD) Welch Two Sample t-test data: Q and WD t = 1.9807, df = 10.158, p-value = 0.07533 alternative hypothesis:

[R-sig-eco] Plot question

2014-03-23 Thread Luis Fernando GarcĂ­a
Dear R friends, I have to produce a plot like the one attached on the file. The idea is to plot the time spent for a spider over several different prey, the spiders were repreated in the different trials. If any of you knows how to perform this plot or have any source which explains how to do it,

Re: [R-sig-eco] Plot question

2014-03-23 Thread Nicholas Hamilton
Garcia, Just use ggplot2, here is some code to illustrate: -- library(ggplot2) #Create some dummy data with x, y and category columns mysample <- function(category) data.frame(x=c(1:10),y=c(10:1)*(1+0.25*runif(10)),Category=category) dfA = mysample("A") dfB = mysample("B")

Re: [R-sig-eco] Plot question

2014-03-23 Thread Tim Meehan
Hi Luis, You can try this: # enter data spider <- c(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5) prey <- c("cockroach","ant","termite","fly","isopod","cockroach","ant","termite","fly","isopod","cockroach","ant","termite","fly","isopod","cockroach","ant","termite","fly","isopod","cockroach",

Re: [R-sig-eco] report out by t.test

2014-03-23 Thread Baldwin, Jim -FS
The sentence "alternative hypothesis: true difference in means is not equal to 0" is stating what the alternative hypothesis is and not that your particular difference in means is significantly different from zero. That sentence would appear (when you have a two-tailed test) no matter what the