or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
![image alt](https:// "title") | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | Emoji list | ||
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Beautiful Plots with ggplot2
Tuesday, May 18th, 2021 1:00-3:00
Zoom Room 1: https://arizona.zoom.us/j/82636592469, password: 502540
Back to Resbaz HackMD Directory
Being able to create visualizations (graphical representations) of data is a key step in being able to communicate information and findings to others. In this module you will learn to use the ggplot2 library to declaratively make beautiful plots or charts of your data. Learning the framework for using this library will allow you to make nearly any kind of (static) data visualization, customized to your exact specifications.
Getting Started
Download the image files and data from github: www.github.com/katbeescience/ggplot-viz
This workshop expects some working basic knowledge of R, RStudio and if possible of the ‘tidyverse’
Installations:
To follow this workshop you’ll need R and Rstudio installed on your computer.
Open RStudio and install the tidyverse libraries by typing install.packages("tidyverse") in the console.
You can also get the avocado price dataset available here (but we’ll do this together):
https://www.kaggle.com/neuromusic/avocado-prices/data
What we'll cover:
The ‘layered’ system of adding plot components (geoms)
The ‘grammar’ of graphics
Plotting dates in a time series
Extras: Add an image (or three) to your plot!
We’ll work as consistently as possible with previous workshops
Introductions
Name, Affiliation, Title, Email, Social Media
Questions and Answers
In this section, you can post your questions and feel free to answer if you have it. Questions will be answered during or after the workshop.
Additional Resources
The code from this workshop: https://github.com/katbeescience/ggplot-viz
A sign-in sheet for participants: https://docs.google.com/spreadsheets/d/1DqpT7-U1XiSEhVT_wpuEEVDII5Lhavm5wRRcDrQiPPk/edit?usp=sharing
Avocado dataset used in this workshop: https://www.kaggle.com/neuromusic/avocado-prices/data
A second link to the avocado dataset: https://docs.google.com/spreadsheets/d/1ZTVsagSH2zpWz9O-8CV68WPlEd95ewL9OmK0vAgVpl8/edit?usp=sharing
R Graph Gallery: https://www.r-graph-gallery.com/ggplot2-package.html
R Color Library: http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdf
List of ggplot themes: https://ggplot2.tidyverse.org/reference/ggtheme.html
ggplot2 documentation: https://ggplot2.tidyverse.org/index.html
THE ggplot Book: https://ggplot2-book.org/index.html
Book: Data Visualization, A Practical Introduction by Kieran Healy. https://socviz.co/index.html#preface
Book: Discovering Statistics in R by Andy Field, Jeremy Miles, and Zoe Field https://www.discoveringstatistics.com/books/discovering-statistics-using-r/
Session Feedback
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Use the link below to provide your feedback on the session:
Session Feedback Form