Discussion 1

Author

Aritra Ray

Published

September 4, 2024

Exploring Quatro

I have installed palmerpenguins using the following command:

install.packages("palmerpenguins")
Code
library(psych)
library(palmerpenguins)
library(tidyverse)

Clearing the environment

rm(list = ls())

Exploring the dataframe

nrow(penguins)
[1] 344
ggplot(penguins, 
       aes(x = flipper_length_mm, y = bill_length_mm)) +
  geom_point(aes(color = species, shape = species)) +
  scale_color_manual(values = c("darkorange","purple","cyan4")) +
  labs(
    title = "Flipper and bill length",
    subtitle = "Dimensions for penguins at Palmer Station LTER",
    x = "Flipper length (mm)", y = "Bill length (mm)",
    color = "Penguin species", shape = "Penguin species"
  ) +
  theme_minimal()