K-Science.info

K-Science.info

Box Plots:

boxplot: The boxplot command.
col: The box colors.
main: The title.
xlab: The x axis label.
ylab: The y axis label.
names: Names of the different items.
boxplot(x1,x2,x3,col=c("red","blue","green"),xlab="x axis label",main="Title",ylab="y axis label",names= c("label 1", "label 2", "label 1")
Stacks Image 8988

Example 1: Grades from Three Classes

boxplot(x1,x2,x3,col=c("red","blue","green"),xlab="Class",main="Class Grades",ylab="Grade (%)",names= c("1st Hour", "2nd Hour", "3rd Hour")
Stacks Image 92
Stacks Image 12972

Example 2: Lesson Assignment Overview by Class

boxplot(X1st,X2nd,X4th,X6th,X7th,X8th,col=c("red","blue","green","purple","yellow","orange"),xlab="Class",main="Class Grades for Lesson",ylab="Grade (%)",names= c("1st Hour", "2nd Hour","4th Hour","6th Hour","7th Hour","8th Hour"))

Stacks Image 12988