Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
0c2d387b484b42dc06d4c28dcae352b6
mooc-rr
Commits
90697597
Commit
90697597
authored
Dec 03, 2021
by
0c2d387b484b42dc06d4c28dcae352b6
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace exercice_en.Rmd
parent
1ca53a0e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
exercice_en.Rmd
module3/exo3/exercice_en.Rmd
+14
-1
No files found.
module3/exo3/exercice_en.Rmd
View file @
90697597
...
...
@@ -129,12 +129,25 @@ ggplot(df_sub, aes(x=Wages, y=Wheat)) +
fill = "#3399e6" ) +
geom_point( size = .7, shape = 4 ) +
xlim(min((na.omit(df_sub))$Wages), max((na.omit(df_sub))$Wages)) +
#
xlim(min((na.omit(df_sub))$Wages), max((na.omit(df_sub))$Wages)) +
labs(title = "Evolution of wheat price with respect to salary of English workers (16th to 19th century)") +
theme(plot.title = element_text(hjust = 0.5))
```
## From another angle
An interesting parameter to look at is the ratio representing the amount of wheat a worker can buy with his salary.
```{r, message=FALSE}
df_sub2 <- df[,]
ggplot(df_sub2, aes(x=Year, y=Wages/Wheat)) +
geom_line( size = 0.5, alpha=0.5,
linetype="dashed" ) +
geom_point( size = 1 ) +
labs(title = "How many wheat quaters a worker can buy with his weekly salary ?") +
theme(plot.title = element_text(hjust = 0.5))
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment