ggplot box plot without outliers poins
# Load the ggplot2 library
library(ggplot2)
# Create a sample data frame (replace this with your own data)
set.seed(123)
data <- data.frame(
Group = rep(c("A", "B", "C"), each = 50),
Value = c(rnorm(50), rnorm(50, mean = 2), rnorm(50, mean = 4))
)
# Create a box plot without outlier points
ggplot(data, aes(x = Group, y = Value)) +
geom_boxplot(outlier.shape = NA) +
theme_minimal()