hi members,
i try to plot two columns of a matrix as points with standard deviation.
a legend should also be there. the one points should be green and the
others red...
column 1 and 3 are the values to plot and column 2 and 4 are the
attendant standard deviation (sd)... as xlab should show the
Perhaps:
plot(x[c(1,3)], pch=16)
segments(x[,1],x[,3]-x[,2], x[,1], x[,3]+x[,4], col="red")
On 21/02/2008, Paul Hammer <[EMAIL PROTECTED]> wrote:
> hi members,
>
> i try to plot two columns of a matrix as points with standard deviation.
> a legend should also be there. the one points should be
Henrique Dallazuanna schrieb:
Perhaps:
plot(x[c(1,3)], pch=16)
segments(x[,1],x[,3]-x[,2], x[,1], x[,3]+x[,4], col="red")
On 21/02/2008, Paul Hammer <[EMAIL PROTECTED]> wrote:
hi members,
i try to plot two columns of a matrix as points with standard deviation.
a legend should also be th
Try this:
plot(x[,1], ylim=range(x[c(1,3)]), xaxt="n", xlab="", pch=16, col="blue")
points(x[,3], pch=16, col="red")
axis(1, at=1:nrow(x), labels=rownames(x), las=2)
segments(1:nrow(x), x[,1]-x[,2], 1:nrow(x), x[,1]+x[,2], col="blue")
segments(1:nrow(x), x[,3]-x[,4], 1:nrow(x), x[,3]+x[,4], col="r
4 matches
Mail list logo