diff --git a/module2/exo2/exercice_en.Rmd b/module2/exo2/exercice_en.Rmd index fd50c1f914ae7e821988b498ad1ab801cdef87e5..5cfe43d086ddce0d5f6473f5b1890b8b6d5b1c69 100644 --- a/module2/exo2/exercice_en.Rmd +++ b/module2/exo2/exercice_en.Rmd @@ -1,5 +1,5 @@ --- -title: "Exercice 02 (2nd part)" +title: "Exercices Module 2" author: "Anders MÃ¥rell" date: "2023-06-09" output: html_document @@ -12,7 +12,8 @@ editor_options: knitr::opts_chunk$set(echo = TRUE) ``` -# Doing a simple calculation on your own +# Exercice 02 (2nd part) +## Doing a simple calculation on your own Compute the mean and the standard variation, the minimum, the median, and the maximum of the following data set: @@ -51,3 +52,18 @@ We can also use summary: summary(x) ``` +# Exercise 02 (3rd part) +## Data visualization + +Reproduce the first figure (sequence plot): + +```{r} +plot(x, type = "l") +``` + +Reproduce the second figure (histogram): + +```{r} +hist(x) +``` +