05.06.2013 Views

Growth model of the reared sea urchin Paracentrotus ... - SciViews

Growth model of the reared sea urchin Paracentrotus ... - SciViews

Growth model of the reared sea urchin Paracentrotus ... - SciViews

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

lines(edatq[, 1], predict(edat.025, newdata=list(age=edatq[, 1])), col=4)<br />

legend(1500, 20, c("quantile 0.975", "quantile 0.5 (median)", "quantile 0.025"),<br />

col=c(1,2,4), lty=1, pch=1)<br />

#Rem: for <strong>the</strong> graph <strong>of</strong> Fig. 1B in <strong>the</strong> paper, it is:<br />

#windows(8, 6)<br />

#plot(edatq[, "age"], edatq[, "0.975"], ylim=c(0,65), xlab=expression(paste("Time ",<br />

italic("t"), " in days")), ylab=expression(paste("Diameter ", italic("D"), " in mm")),<br />

pch=2)<br />

#points(edatq[, "age"], edatq[, "0.5"], pch=1)<br />

#points(edatq[, "age"], edatq[, "0.025"], pch=6)<br />

#lines(edatq[, 1], predict(edat.975, newdata=list(age=edatq[, 1])), lty=2)<br />

#lines(edatq[, 1], predict(edat.5, newdata=list(age=edatq[, 1])), lty=1)<br />

#lines(edatq[, 1], predict(edat.025, newdata=list(age=edatq[, 1])), lty=4)<br />

#legend(1700, 18, c("quantile 0.975", "quantile 0.5 (median)", "quantile 0.025"),<br />

lty=c(2,1,4), pch=c(2,1,6))<br />

Pause()<br />

cat("\n ---- Quantile regression with <strong>the</strong> fuzzy-remanent growth function ----\n\n")<br />

cat("... it takes some time, please, be patient...\n")<br />

# Rem: not able to calculate self-starting conditions with this data set... give<br />

initial plausible values!<br />

# starting values are very important here! We <strong>of</strong>ten get stuck in a local minimum or<br />

<strong>the</strong> algorithm fails!<br />

# Rem: time-scale starts at metamorphosis, and is thus shifted by 30 days (see paper)<br />

edatf.975

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!