29.12.2014 Views

corresponding pdf

corresponding pdf

corresponding pdf

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.

(b) Create a histogram and normal quantile plot for the height changes of the seedlings. Is the distribution<br />

approximately normal<br />

# Using base graphs<br />

hist(BS$Ht.change, main = "Histogram", xlab = "", freq = FALSE, col = "pink")<br />

lines(density(BS$Ht.change), col = "red", lwd = 2)<br />

curve(dnorm(x, mean(BS$Ht.change), sd(BS$Ht.change)), 0, 60, add = TRUE, col = "blue",<br />

lwd = 2)<br />

Histogram<br />

Density<br />

0.00 0.02 0.04<br />

10 20 30 40 50<br />

qqnorm(BS$Ht.change, col = "red")<br />

qqline(BS$Ht.change, col = "blue")<br />

Normal Q-Q Plot<br />

Sample Quantiles<br />

10 20 30 40 50<br />

-2 -1 0 1 2<br />

Theoretical Quantiles<br />

12

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

Saved successfully!

Ooh no, something went wrong!