#
# Chapter 1 -- Bayesian Computation With R
# Demonstrates the Studentdata example
#
# Remove all objects just to be safe
#
rm(list=ls(all=TRUE))
#
library(LearnBayes)
#
data(studentdata)
attach(studentdata)
#
# Type in Remaining Commands in R Window
#
# box plot or boxplot (also known as a box-and-whisker diagram or plot)
# is a convenient way of graphically depicting groups of numerical data
# through their five-number summaries (the smallest observation
# (sample minimum), lower quartile (Q1), median (Q2), upper quartile (Q3),
# and largest observation (sample maximum). A boxplot may also indicate
# which observations, if any, might be considered outliers.
#
height <- Height - 0.000
boxplot(height~Gender,
ylab="",names=c("",""),font=2,col="red")
output <- boxplot(height~Gender,ylab="",names=c("",""),font=2,col="red")
#
# Main title
mtext("Box Plots of the Heights of\nWomen and Men",side=3,line=1.00,cex=1.2,font=2)
# x-axis title
mtext("Female Male",side=1,line=2.75,font=2,cex=1.2)
# y-axis title
mtext("Height",side=2,line=2.75,font=2,cex=1.2)
#
detach(studentdata)