[R] Probability trees

2009-03-24 Thread Waldir Leôncio
How can I create probability trees in R? I've searched everywhere I could and still have no clue. :-/ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

[R] Thousand separator on axis

2009-03-06 Thread Waldir Leôncio
Is there an easy way to add a thousand separator mark on the axis of a plot? The best solution I've found so far is the following: y <- seq(0, 10, 1) plot(y, yaxt = "n", ylab = "") axis(2, at = y, labels = formatC(y, big.mark = " ", format = "d"), las=2) But that seems like quite a hassl