#' @title Box plot for One Way ANOVA
#' @description Creates a boxplot for an oneway object
#' @param x object of class \code{oneway}
#' @param ... parameters passed to the boxplot function
#' @return NULL
#' @examples
#' mileage <- oneway(hwy ~ class, cars)
#' plot(mileage)
#' @rdname plot.oneway
#' @export
plot.oneway <- function(x, ...){
if(!inherits(x, "oneway")) stop("Must be class 'oneway'")
boxplot(x$anova$terms, x$anova$model, col="skyblue", ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.