Kaenat Workbook

Author

KAENAT GUL(N1325553)

We have to upload a picture. so i upload the penguin picture because in this function we talk about penguins

Week One

In this week, firstly we have to installed and download the R and Rstudio with different packages and functions. So we can run the code without any error. After downloading process we have to perform different function that show the bar graph as well.

Packages:

Quarto package:

install.packages(“quarto”)

After rendering,we use this to generate the output in different formats like;HTML, PDF, MS Word document, presentation, website, book, interactive document.Result of quarto file is in (.qmd) extension.

Relationship between penguins species:

The plot below shows the relationship between flipper and bill lengths of these penguins.

library(palmerpenguins)
library(ggplot2)

# Filter dataset for two penguin species (Adelie and Gentoo )
two_species <- subset(penguins, species %in% c("Adelie", "Gentoo"))
# Plot flipper length vs. bill length
ggplot(two_species, aes(x = bill_length_mm, y = flipper_length_mm, color = species)) +
  geom_point()+
  labs(title = "Flipper Length vs Bill Length for Two Penguin Species",
       x = "Bill Length (mm)",
       y = "Flipper Length (mm)",
       color = "Species") +
  theme_minimal()
Warning: Removed 2 rows containing missing values or values outside the scale range
(`geom_point()`).