Bar Plot
A bar plot can easily be obtain in R using the command "barplot" in the base package "graphics"
> Degree=c(27859,58007,44465,44828) # Degree is a vector containing the number of adults interviewed corresponding
to their educational level
>barplot(Degree, xlab="Level of Education", ylab="Number of adults",
names.arg=c("Not HS grad","HS grad","Some college","College grad"),col=rainbow(4)) # Obtaining the barplot