Penguins plot : practice analysis

Setting up my environment

Notes : Setting up my R markdown environment by loading ‘palmerpenguins’,‘tidyverse’ and ‘ggplot2’ packages

install.packages("palmerpenguins")
## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3'
## (as 'lib' is unspecified)
library(palmerpenguins)
install.packages("tidyverse")
## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3'
## (as 'lib' is unspecified)
library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.2     ✔ readr     2.1.4
## ✔ forcats   1.0.0     ✔ stringr   1.5.0
## ✔ ggplot2   3.4.2     ✔ tibble    3.2.1
## ✔ lubridate 1.9.2     ✔ tidyr     1.3.0
## ✔ purrr     1.0.1
## ── 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 errors
ggplot(data = penguins) + geom_point(mapping = aes(x = flipper_length_mm, y = body_mass_g, color = species)) +
  labs(title = "Palmer Penguins : Body Mass vs. Flipper Length",subtitle = "Sample of Three Penguin Species",caption = "Data collected by Dr.Kristen Gorman") +
  annotate("text",x = 220,y = 3500,label = "The Gentoo are the largest",color = "blue",fontface = "bold",size = 4.5,angle = 25)
## Warning: Removed 2 rows containing missing values (`geom_point()`).