program11

Author

Ashutosh

To generate a basic box plot using ggplot2 enhenced with notches and outliners and grouped by categorical variables using a inbuilt

library(ggplot2)
ggplot(iris,aes(x=Species, y=Sepal.Length,fill=Species))+
  geom_boxplot(notch= TRUE,outlier.color = "black",outlier.shape=10,outlier.fill = "skyblue")+
  labs(
    title = "Notched box plot of sepal length",
    x="species",
    y="Sepal Length"
  )+
  theme_minimal()