---
title: "Dataviz for Scientists"
author: "[Otho Mantegazza](https://othomantegazza.com/)"
format:
html:
toc: true
theme:
- style/fonts-landing.scss
- style/custom-landing.scss
include-in-header:
text: >
<meta property="og:title" content="Dataviz for Scientists">
<meta property="og:description" content=" Material and exercises for a three days workshop on data visualization for scientists in R and a bit of Javascript. By Otho Mantegazza.">
<meta property="og:image" content="img/front.jpg">
<meta property="og:site-name" content="Data Visualization for Scientists">
<meta property="og:locale" content="en_EU">
---
# Introduction
Communication is essential for any kind of scientist. Your research findings might contain the most important results, but if you don’t manage to communicate them to others, they might be like a tree falling in a forest with no one around. Do they make a sound?
A huge part of results today depends on data, and communicating data effectively is a skill made of many components. Representing data graphically is a big part of it.
In this workshop you will learn how to communicate data graphically, and how to use literate programming to make your graphics available to others, together with text and analytical code.
For this three days workshop, we will use R and Javascript to analyze and visualize the data.
With [Quarto](https://quarto.org/), a modern literate programming tool dedicated to scientific communication, we will put it all together, to let you communicate your data in beautifully formatted outputs, which are easy to read, but also reproducible and transparent for the analytical mind.
In the extensively hands-on sessions we will focus on real-world data, and if you would like to, you are welcomed to bring your own data to the workshop.
All the software, programming language, and resources used in this workshop are open source and open access. In this way the participants will have full control on the tools that they use and will be able to access them after the class is over, free from unfavorable commercial licenses. All the tools are cutting edge in both industry and academic fields.
# Slides
Below you can find the link to the slides.
## Part 1: Welcome to R
Day 1.
1. [Introduction](100-intro.html)
2. [Meet R](110-meet-r.html)
3. [Use Data in R](120-manipulate.html)
4. [Missing Values](130-missing-values.html)
5. [Load New Data Into R](140-load-data.html)
6. [Clean and Tidy Data](150-clean.html)
## Part 2: Intro to Data Visualization
Day 2, morning.
1. [Instant Knowledge](200-instant-data.html)
2. [Quick History of Dataviz](210-history.html)
3. [The Grammar of Graphics](220-gg.html)
4. [Exploratory Data Analysis](230-eda.html)
## Part 3: Better Graphs
Day 2, afternoon.
1. [Better Graphs - Part I](310-better-graphs.html)
2. [Better Graphs - Part II](320-better-graphs-2.html)
## Part 4: Scientific Publishing
Day 3, morning.
1. [Quarto: Open Tools for Scientific Publishing](410-sci-pub-tool.html)
## Part 5: Web Development
Day 3, afternoon.
1. [Why Learn Web Development?](500-web-dev.html)
2. [Data Visualization in Javascript](510-dv-js.html)
# Resources
Besides the slides, you can consult any of these [open access books](https://othomantegazza.com/textbook-library) on the topics of data analysis, statistics, programming and data visualization. The authors of those books made them open access, so they can be consulted online anytime.
# Packages
There's some package that we are going to use in most exercise. To be sure that you have them ready, install them by running at the R console:
```r
install.packages(
c('tidyverse',
'palmerpenguins',
'here',
'janitor',
'paletteer')
)
```
At the beginning of each one of your script, you can load them by writing:
```r
library(tidyverse)
library(palmerpenguins)
library(here)
library(janitor)
library(paletteer)
```
# Source Code
The source code for these slides is on Github at [https://github.com/othomantegazza/dataviz-for-scientists-slides](https://github.com/othomantegazza/dataviz-for-scientists-slides)
# License
This work is licensed by Otho Mantegazza under the [CC BY-NC-SA 4.0 license](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). For more information about the non-original bits and pieces, please check the file [LICENSE](https://github.com/othomantegazza/dataviz-for-scientists-slides/blob/main/LICENSE) on this course's [Github repo](https://github.com/othomantegazza/dataviz-for-scientists-slides).
# Acknowledgements
Big thanks to [Giorgia Ditano](https://giorgia-dit.github.io/about/) for the help and support in reviewing the course material.