Displaying 2 results from an estimated 2 matches for "xzero".
Did you mean:
zero
2005 Apr 12
1
Cumulative Points and Confidence Interval Manipulation in barplot2
...probability (as say a
point or line) across the range of the x-axis on the same figure at the
top, but I have been unable to figure out how to overlay a set of
cumulative points over the barplot across the same range as the x-axis.
Below is some example code showing the test data I am working on
(xzero):
xzero <- table(factor(WWNEW[HUNTTYPE=="DOVEONLY"], levels=0:12))
> xzero
0 1 2 3 4 5 6 7 8 9 10 11 12
179 20 9 2 2 0 1 0 0 0 0 0 0
> n <- sum(xzero)
> k <- sum(table(xzero))
> meantheta1 <-((2*xzero + 1)/(2*n + k...
2001 Nov 29
2
plotting (a) confidence intervals (b) standard error
...matplot(c(1:5), tmeantmatrix, xlab = "Position", ylab = "Mean Reading Time
(msecs)", main = "Test")
# add lines connecting the points:
matplot(tmeantmatrix, pch = 1:2, type = "o", lty=1:2, lwd=3, col =
rainbow(ncol(tmeantmatrix)),add=TRUE)
# add CI bars:
xzero <- t(matrix(rep(1:5,2),ncol=2))
xone <- xzero
segments(x0=xzero, y0=tl, x1=xone, y1=tu)
#-------------------end of code------------------------------
Many thanks in advance,
--
Shravan Vasishth
Dept. of Linguistics, OSU
222 Oxley Hall, 1712 Neil Ave.
Columbus, OH 43210-1298
USA
URL: ht...