Skip to content

Commit

Permalink
differences for PR #591
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 21, 2024
1 parent f8b05eb commit 2026a8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions 07-visualization-ggplot-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ to the color aesthetic:
)
```

![](fig/06_color_plot.png){alt='scatter plot of Hindfoot length vs weight with colors coordinating to specfic species, showing abundance in the mid to lower left side of the plot'}
![](fig/06_color_plot.png){alt='scatter plot of Hindfoot length vs weight with colors coordinating to specific species, showing abundance in the mid to lower left side of the plot'}

Apart from the adaptations of the arguments and settings of the `data`, `aes`
and `geom-*` elements, additional elements can be added as well, using the `+`
Expand All @@ -248,7 +248,7 @@ operator:
)
```

![](fig/06_color_label_plot.png){alt='scatter plot of Hindfoot length vs weight (g) with colors coordinating to specfic species, showing abundance in the mid to lower left side of the plot'}
![](fig/06_color_label_plot.png){alt='scatter plot of Hindfoot length vs weight (g) with colors coordinating to specific species, showing abundance in the mid to lower left side of the plot'}

- Defining scale for colors, axes,... For example, a log-version of the x-axis
could support the interpretation of the lower numbers:
Expand Down Expand Up @@ -387,7 +387,7 @@ mapping of a variable, `plotnine` will handle the values as category values.

## Plotting time series data

Let's calculate number of counts per year for each species. To do that we need
Let's calculate the number of counts per year for each species. To do that we need
to group data first and count the species (`species_id`) within each group.

```python
Expand Down Expand Up @@ -567,7 +567,7 @@ following example of a bar plot with the counts per year.
)
```

![](fig/06_overlap_bars.png){alt='Bar graph of count per year showing ovelapping x-axis labels'}
![](fig/06_overlap_bars.png){alt='Bar graph of count per year showing overlapping x-axis labels'}

Notice that we use the `year` here as a categorical variable by using the
`factor` functionality. However, by doing so, we have the individual year
Expand Down
Empty file modified fig/00_0_jupyter_notebook_example.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion md5sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"episodes/04-data-types-and-format.md" "e57b9b771e5d2dcf4c9e2521822f8d5a" "site/built/04-data-types-and-format.md" "2023-06-05"
"episodes/05-merging-data.md" "5e0cb1f86b8cb29a87d57b8eaee9acf5" "site/built/05-merging-data.md" "2024-02-05"
"episodes/06-loops-and-functions.md" "d41f11e6c162c86393cd9bd4431c0687" "site/built/06-loops-and-functions.md" "2023-05-18"
"episodes/07-visualization-ggplot-python.md" "814b6fc361595a0c9ea7db393b1424db" "site/built/07-visualization-ggplot-python.md" "2023-05-19"
"episodes/07-visualization-ggplot-python.md" "90c47e103def226935f90723ae361b1f" "site/built/07-visualization-ggplot-python.md" "2024-02-21"
"episodes/08-putting-it-all-together.md" "b279a4ab47789abda7f71609a78022ed" "site/built/08-putting-it-all-together.md" "2024-01-31"
"episodes/09-working-with-sql.md" "e27af594f7ae68613dbaae8240493770" "site/built/09-working-with-sql.md" "2023-05-18"
"instructors/CONTRIBUTORS.md" "71ca6d2e0d81004775e42ce90cd6a298" "site/built/CONTRIBUTORS.md" "2023-05-08"
Expand Down

0 comments on commit 2026a8b

Please sign in to comment.