Re: [R-sig-eco] R-sig-ecology (72-19): Plot question

2014-03-24 Thread Rodrigues
Ok my bad. Stripchart doenst plot bar... Just like this time=(c(rnorm(10,2),rnorm(10,3),rnorm(10,1.5),rnorm(10,.5),rnorm(10,1))) prey=factor(c(rep(1,10),rep(2,10),rep(3,10),rep(4,10),rep(5,10)),labels=c("Ants","Cockroach","Fly","Isopod","Mite")) stripchart(time~prey,vertical=T,pch=1,method="jitter

Re: [R-sig-eco] R-sig-ecology (72-19): Plot question

2014-03-24 Thread Michał Bogdziewicz
Bar plots are not necessety the best way to show data: 2014-03-24 21:34 GMT+01:00 Rodrigues : > Dear Michal, > > In this case they have only two variables: (i) time spend in each prey and > (ii) prey type. Would be better if he use bar graphs. So if are necessary > show the time spend for each spi

Re: [R-sig-eco] R-sig-ecology (72-19): Plot question

2014-03-24 Thread Rodrigues
Dear Michal, In this case they have only two variables: (i) time spend in each prey and (ii) prey type. Would be better if he use bar graphs. So if are necessary show the time spend for each spider I suggest the follow commands: spider2=as.factor(spider) plot(time~prey) library(gplots) mt=tappl

Re: [R-sig-eco] R-sig-ecology (72-19): Plot question

2014-03-24 Thread Michał Bogdziewicz
I forgor to paste the link... sorry! http://egret.psychol.cam.ac.uk/statistics/R/graphs2.html 2014-03-24 21:20 GMT+01:00 Michał Bogdziewicz : > Hi, > > whether this is good or not good way to show ecological data I believe > you can create a plot like that using ggplot2 package. Here is the > lin

Re: [R-sig-eco] R-sig-ecology (72-19): Plot question

2014-03-24 Thread Michał Bogdziewicz
Hi, whether this is good or not good way to show ecological data I believe you can create a plot like that using ggplot2 package. Here is the link to some nice description with examples. Hope that will help:) cheers, 2014-03-24 19:49 GMT+01:00 Martin Weiser : > Hi Claas, > > while this may be no

Re: [R-sig-eco] R-sig-ecology (72-19): Plot question

2014-03-24 Thread Martin Weiser
Hi Claas, while this may be not the best plot one can imagine, I think it shows well behaviour of individual spider (results are grouped by spider identity, I guess). So yes, one could use specific symbol per spider, but this seems like a usable way how to to cope with the "per-spider" grouping, i

Re: [R-sig-eco] R-sig-ecology (72-19): Plot question

2014-03-24 Thread Claas Damken
Hi Luis, whatever R code you will end up using, the example image you attached is a good example of how NOT to display ecological data. There is no ecological meaning for the lines connecting the dots (i.e, there is nothing halfway between an ant and a termite), as the x axis shows categorial cl