library(tidyverse)#> Warning: package 'purrr' was built under R version 4.5.2#> Warning: package 'stringr' was built under R version 4.5.2#> Warning: package 'forcats' was built under R version 4.5.2#> ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──#> ✔ dplyr 1.1.4 ✔ readr 2.1.6#> ✔ forcats 1.0.1 ✔ stringr 1.6.0#> ✔ ggplot2 4.0.1 ✔ tibble 3.3.0#> ✔ lubridate 1.9.4 ✔ tidyr 1.3.1#> ✔ purrr 1.2.0 #> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──#> ✖ dplyr::filter() masks stats::filter()#> ✖ dplyr::lag() masks stats::lag()#> ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errorslibrary(patchwork)#> Warning: package 'patchwork' was built under R version 4.5.2p1<-ggplot(mpg, aes(x =drv, y =cty, color =drv))+geom_boxplot(show.legend =FALSE)+labs(title ="Plot 1")p2<-ggplot(mpg, aes(x =drv, y =hwy, color =drv))+geom_boxplot(show.legend =FALSE)+labs(title ="Plot 2")p3<-ggplot(mpg, aes(x =cty, color =drv, fill =drv))+geom_density(alpha =0.5)+labs(title ="Plot 3")p4<-ggplot(mpg, aes(x =hwy, color =drv, fill =drv))+geom_density(alpha =0.5)+labs(title ="Plot 4")p5<-ggplot(mpg, aes(x =cty, y =hwy, color =drv))+geom_point(show.legend =FALSE)+facet_wrap(~drv)+labs(title ="Plot 5")