search for: writep

Displaying 1 result from an estimated 1 matches for "writep".

Did you mean: write
2005 Oct 24
1
Basic: setting resolution and size of an R graphic
...UNCTIONS --------------------- # ## Define a simple function to draw the error bars. makeBars <- function(x,mean,se){ segments(x,mean - se/2,x,mean+se/2) segments(x-0.1,mean - se/2,x+0.1,mean - se/2) segments(x-0.1,mean + se/2,x+0.1,mean + se/2) } ##Define a simple function to write p values writeP <- function(x,mean,se,pval) { if (pval >= 0.01) { # text(x, mean + se/2 + 0.25, sprintf('p=%.2f',pval),cex=1.5) text(x +0.05, mean + se/2 + 0.4, sprintf('*'),cex=1) } else { text(x +0.05, mean + se/2 + 0.4, sprintf('**'),cex=1) } } ## define function to dr...