search for: alfredotello

Displaying 6 results from an estimated 6 matches for "alfredotello".

2013 Feb 01
1
x-axis labelling
...r,names.arg=levels(db$date),las=2,cex.axis=0.8,cex=0.8) This labels all the tickmarks in my barplot, which is the default behavior. I would like to label every other tick mark in the barplot --> 1,3,5,7 and so on. Thank you very much for your help! All the best, A -- Alfredo Tello (http://alfredotello.com) Sustainable Aquaculture Group Institute of Aquaculture University of Stirling Scotland, UK. [[alternative HTML version deleted]]
2011 Jun 17
3
Size argument in sample function
Hi All, I'd like to randomly sample a vector N times, where each successive random sample increases in size. I have realised that the function sample does not take vectors for arguments. For example, x<-rnorm(20,0,1) sample(x,c(1,2,3)) ## will only return one random sample of size 1. The trick seems to be getting past the size argument of the function. I've tried different things
2010 Sep 10
4
for loop help please!
Hi Everyone, I have a 2-dim data.matrix(e.g., table1) in which row1 specifies a range of values. row2 - rown specify the number of times I want to replicate each corresponding value in row1. I can do this with the following function: rep(c(table1[1,]),c(table1[X,])) #where X would go from 2 - n. Now, I can do this manually by changing the values of X and save each resulting array/vector in
2011 Jul 22
2
averaging rows based on string¿?
Hi Folks, Ran into something I'd really like to do in R simply/elegantly, but my R - coding skills seem surpassed. This is the thing. Imagine the following data: labs<-c("abcdef","abcgg","tgthefdk","tgtijuel","tgtnjmoi","gbnt","dlift") dat<-c(0.5,0.25,1,2,16,0.250,4) dframe<-data.frame(labs,dat) I would like to
2011 Feb 16
0
y-axis slightly cut-off after printing plots to tiff
Hi Folks, I'm hoping someone could help me a bit. I have plotted the following: ########################################### tiff("plot7.tiff",units="cm",width=15,height=36,res=700) layout(matrix(c(1,2,3,4,5,6),3,1),widths=lcm(c(15)),heights=lcm(c(12,12,12)),respect=TRUE) plot.t1<-plot(data.dist,flot1.bray.hell,xlab="",ylab="Bray-Curtis dissimilarity
2010 Sep 22
2
"statistic" term in boot function
Hi There, Just a question regarding the function that is specified to boot (I have read the help, the manual and online examples.........). The description of boot says that the second argument of "statistic" (non parametric bootstrap) must be a vector of indices, frequencies or weights which define the bootstrap sample. If what I will be bootstrapping is e.g., the mean of a vector of