Saturday 13 April 2019

Box New

input=mtcars[,c('mpg','cyl')]    -  notch=false is box format and true is like some different format    
print(tail(input))

boxplot(mpg ~ cyl,data=mtcars,xlab="number of cylinders",ylab="miles per gallon",main="mileage data",notch=FALSE,varwidth=TRUE,col=c("green","yellow","purple"),names=c("high","medium","low"))

No comments:

Post a Comment