Интерактивный график

library(ggplot2)
library(plotly)

ggpenguins <- qplot(bill_length_mm , body_mass_g, 
data = palmerpenguins::penguins, color = species)
Warning: `qplot()` was deprecated in ggplot2 3.4.0.
ggplotly(ggpenguins)