Re: [R] Sweave data-figure coupling

2009-01-06 Thread ONKELINX, Thierry
uot;) } ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance Gaverstr

Re: [R] Sweave data-figure coupling

2009-01-05 Thread Philipp Pagel
On Mon, Jan 05, 2009 at 01:52:00PM -0600, Sebastian P. Luque wrote: > <>= > layout(matrix(1:2, ncol=2)); par(mar=c(5, 4, 2, 1), cex=0.75) > matplot(thetas, cbind(prior, lik, post), type="l", lty=c(2, 1, 1), > xlab="theta", ylab="probability density") > lik <- dbinom(60, 100, thetas) > lik.p

Re: [R] Sweave data-figure coupling

2009-01-05 Thread Sebastian P. Luque
On Mon, 05 Jan 2009 15:14:37 -0500, Duncan Murdoch wrote: [...] > You missed an @ after this chunk. If this is true in the original, > I'm surprised Sweave didn't report an error, but it probably ate up > the second chunk as part of the first. AFAIK there's no need to separate every chunk by "

Re: [R] Sweave data-figure coupling

2009-01-05 Thread Duncan Murdoch
On 1/5/2009 2:52 PM, Sebastian P. Luque wrote: Hi, With the following Sweave minimal file: ------ \documentclass{article} \usepackage{Sweave} \begin{document} <>= thetas <- seq(0, 1, by=0.001) prior <- rep(1, length(thetas

[R] Sweave data-figure coupling

2009-01-05 Thread Sebastian P. Luque
Hi, With the following Sweave minimal file: ------ \documentclass{article} \usepackage{Sweave} \begin{document} <>= thetas <- seq(0, 1, by=0.001) prior <- rep(1, length(thetas)) / length(thetas) lik <- dbinom(1, 1, thetas) l