<commit_before>---
layout: single
title: "Week 7: Displaying Data Visually"
permalink: /courses/6002Data/6002Week7/
author_profile: false

---

Visually displaying data through figures is a critical part of producing high quality science. The amount of information you can glean from a well-designed figure is impressive, and so today we will learn how to make basic figures in R.

### Lecture Topics
* Working with dates
* Basic principles of effective data display
* ggplot2 vs. base plot
* Contrasting plots for common data types

### Resources

Lubridate: https://lubridate.tidyverse.org/

See this resource for basic plotting: http://r4ds.had.co.nz/data-visualisation.html

ggplot2 cheat sheet: https://www.rstudio.com/wp-content/uploads/2015/03/ggplot2-cheatsheet.pdf

R base plot cheat sheet: http://publish.illinois.edu/johnrgallagher/files/2015/10/BaseGraphicsCheatsheet.pdf

<NAME>'s stats illustrations: https://github.com/allisonhorst/stats-illustrations

## Code and Data

* [Week 7 R project folder](/assets/images/FISH6002_Week7.zip) *Complete only for the Monday Oct 21 lecture. Will upload more tonight for Oct 22.

## Lecture slides

<script async class="speakerdeck-embed" data-id="ee510a9b67e449d89f01ceed7ac20395" data-ratio="1.77777777777778" src="//speakerdeck.com/assets/embed.js"></script>

Slides available via [speakerdeck](https://speakerdeck.com/pandalusplatyceros/fish-6002-week-7-displaying-data-visually-1)<commit_msg>updated embed code<commit_after>---
layout: single
title: "Week 7: Displaying Data Visually"
permalink: /courses/6002Data/6002Week7/
author_profile: false

---

Visually displaying data through figures is a critical part of producing high quality science. The amount of information you can glean from a well-designed figure is impressive, and so today we will learn how to make basic figures in R.

### Lecture Topics
* Working with dates
* Basic principles of effective data display
* ggplot2 vs. base plot
* Contrasting plots for common data types

### Resources

Lubridate: https://lubridate.tidyverse.org/

See this resource for basic plotting: http://r4ds.had.co.nz/data-visualisation.html

ggplot2 cheat sheet: https://www.rstudio.com/wp-content/uploads/2015/03/ggplot2-cheatsheet.pdf

R base plot cheat sheet: http://publish.illinois.edu/johnrgallagher/files/2015/10/BaseGraphicsCheatsheet.pdf

Allison Horst's stats illustrations: https://github.com/allisonhorst/stats-illustrations

## Code and Data

* [Week 7 R project folder](/assets/images/FISH6002_Week7.zip) *Complete only for the Monday Oct 21 lecture. Will upload more tonight for Oct 22.

## Lecture slides

<script async class="speakerdeck-embed" data-id="f8fc9cb53a5a46ebabbaa95c49796510" data-ratio="1.77777777777778" src="//speakerdeck.com/assets/embed.js"></script>

Slides available via [speakerdeck](https://speakerdeck.com/pandalusplatyceros/fish-6002-week-7-displaying-data-visually-1)
{'fraction_non_alphanumeric': 0.10164835164835165, 'fraction_numerical': 0.05151098901098901, 'mean_word_length': 5.018595041322314, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '764962', 'n_tokens_mistral': 1025, 'n_tokens_neox': 914, 'n_words': 268}