Skip to content
Prev 300526 / 398503 Next

Entering Data Files

Hello,

Sorry, I forgot the barplot.


dmelt <- melt(d, id.vars=c("Live", "Age"), measure.vars="Count")
wide <- dcast(Live ~ Age, data = dmelt)

col <- rainbow(4)
barplot(as.matrix(wide[, 2:5]), beside=T, col=col)
legend("topleft", wide[, 1], fill=col)


Hope this helps,

Rui Barradas

Em 18-07-2012 22:19, Rui Barradas escreveu: