Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

ZNK tweaks #13

Merged
merged 6 commits into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 46 additions & 20 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,64 @@
# swc: Software Carpentry
# dc: Data Carpentry
# lc: Library Carpentry
# cp: Carpentries (to use for instructor traning for instance)
carpentry: dc
# cp: Carpentries (to use for instructor training for instance)
# incubator: The Carpentries Incubator
carpentry: 'dc'

# Overall title for pages.
title: 'R-ecology-lesson'
title: 'Data Analysis and Visualization in R for Ecologists'

# Date the lesson was created (YYYY-MM-DD, this is empty by default)
created: ~

# Comma-separated list of keywords for the lesson
keywords:

# Life cycle stage of the lesson
# possible values: pre-alpha, alpha, beta, stable
life_cycle: beta
life_cycle: 'beta'

# License of the lesson
license: CC-BY 4.0
license: 'CC-BY 4.0'

# Link to the source repository for this lesson
source: https://github.com/carpentries-incubator/R-ecology-lesson
source: 'https://github.com/carpentries-incubator/R-ecology-lesson'

# Default branch of your lesson
branch: main
branch: 'main'

# Who to contact if there are any issues
contact: team@carpentries.org
contact: 'team@carpentries.org'

# Navigation ------------------------------------------------
# The menu bar will be in the following order:
#
# - Code of Conduct (CODE_OF_CONDUCT.md)
# - Setup (setup.md)
# - Episodes (episodes/)
# - Learner Resources (learners/)
# - Instructor Resources (instructors/)
# - Learner Profiles (profiles/)
# - License (LICENSE.md)
#
#
# Use the following menu items to specify the order of
# individual pages in each dropdown section
# individual pages in each dropdown section. Leave blank to
# include all pages in the folder.
#
# Example -------------
#
# episodes:
# - introduction.md
# - first-steps.md
#
# learners:
# - setup.md
#
# instructors:
# - instructor-notes.md
#
# profiles:
# - one-learner.md
# - another-learner.md

# Order of episodes in your lesson
# Order of episodes in your lesson
episodes:
- introduction-r-rstudio.Rmd
- visualizing-ggplot.Rmd
- how-r-thinks-about-data.Rmd
- working-with-data.Rmd
- extra-challenges.Rmd

# Information for Learners
learners:
Expand All @@ -54,3 +74,9 @@ instructors:
# Learner Profiles
profiles:

# Customisation ---------------------------------------------
#
# This space below is where custom yaml items (e.g. pinning
# sandpaper and varnish versions) should live


Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exercises: 3
---


```{r setup, include=F}
```{r setup, include=FALSE}
knitr::opts_chunk$set(dpi = 200, out.height = 600, out.width = 600, R.options = list(max.print = 100))
```

Expand All @@ -20,7 +20,7 @@ surveys <- read_csv("data/cleaned/surveys_complete_77_89.csv")

There are some issues with these `ggplot2` examples. Can you figure out what is wrong with each one?

```{r, eval=F}
```{r, eval=FALSE}
ggplot(data = surveys,
mapping = aes(x = weight, y = hindfoot_length, color = "blue")) +
geom_point()
Expand All @@ -33,7 +33,7 @@ Our points don't actually turn out blue, because we defined the color inside of

::::::::::::::::::::::::

```{r, eval=F}
```{r, eval=FALSE}
ggplot(data = surveys,
mapping = aes(x = "weight", y = "hindfoot_length")) +
geom_point()
Expand All @@ -45,7 +45,7 @@ Variable names inside `aes()` should not be wrapped in quotes.

::::::::::::::::::::::::

```{r, eval=F}
```{r, eval=FALSE}
ggplot(data = surveys,
mapping = aes(x = weight, y = hindfoot_length))
+ geom_point()
Expand All @@ -57,7 +57,7 @@ When adding things like `geom_` or `scale_` functions to a `ggplot()`, you have

::::::::::::::::::::::::

```{r, eval=F}
```{r, eval=FALSE}
ggplot(data = surveys, x = weight, y = hindfoot_length) +
geom_point()
```
Expand All @@ -68,7 +68,7 @@ When translating variables from the data, like `weight` and `hindfoot_length`, t

::::::::::::::::::::::::

```{r, eval=F}
```{r, eval=FALSE}
ggplot(data = surveys,
mapping = aes(x = weight, y = hindfoot_length, color = species_id)) +
geom_point() +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exercises: 3

## Setup

```{r setup, include=F}
```{r setup, include=FALSE}
knitr::opts_chunk$set(dpi = 200, out.height = 600, out.width = 600, R.options = list(max.print = 100))
```

Expand Down Expand Up @@ -299,7 +299,7 @@ rep(1:10, each = 4)

1. Write some code to generate the following vector:

```{r seq-chalenge, echo=F}
```{r seq-chalenge, echo=FALSE}
rep(-3:3, 3)
```

Expand Down Expand Up @@ -419,7 +419,7 @@ We've already created quite a few objects in R using the `<-` assignment arrow,

What is the value of `y` after running the following code?

```{r assignment-challenge, eval=F}
```{r assignment-challenge, eval=FALSE}
x <- 5
y <- x
x <- 10
Expand Down
Loading