title: "My answers" author: "" date: " r format(Sys.time(), "%d %B, %Y") " output: pdf_document: default
Objective: explore how some mammals sleep
Data: msleep
The dataset is part of the package ggplot2 and comes as a tibble
Diispllay msleep and iits collumns
```{r}
Write your answer here
```{r}
Write your answer here
There are 5 columns with the type (categories as character) and the 6 last are double/float
```{r}
Write your answer here
Per order, the 3 dominant ones are Rodentia, Primates and Carnivora
```{r}
Write your answer here
```{r}
Write your answer here
Body / Brain weight
It seems reasonable to expect some correlation between the brain and body weights.
Pllot the rellatiionshiip between the body mass and braiin mass
```{r}
Write your answer here
```{r}
Write your answer here
Confiirm the lliinear tiime constraiint of the trade-off between sleep_total and awake
```{r}
Write your answer here
```{r} library(ggrepel) mtcars %>% rownames_to_column(var = "name") %>% ggplot(aes(x = wt, y = mpg, colour = factor(am))) + geom_point() + geom_label_repel(data = function(x) filter(x, cyl == 4, hp > 5), # avoid the letter a in the legend aes(label = name), show.legend
= FALSE) + labs(title = "How car weight affects gas comsumption", x = "weight", y = "mileage per US galon", colour = "Automatic\nManual", caption = "source: mtcars") + theme(plot.caption = element_text(face = "italic"), plot.caption.position = "plot") + # this will allow the text outside of the plot panel coord_cartesian(clip = 'off')
Conservation status
Most of the animals present in this table possess a conservation status. This means that they are more or less in danger for their own survival because of human behavior and activities.
Find out how many of each category of conservation status are present
```{r}
Write your answer here
What endangered animals are eating?
We want to get a horizontal bar plot of conservation status, faceted by vore. However, of course, the conservation status won't be the same across alimentary regimes. Read the blog post by Julia Silge. That's a similar picture we would like to obtain in the end:
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme