Deploying content
Check out some sample infographics.
Do not be intimidated by the sophisticated artistry.
Also note that there are a lot of pie charts1 and cleverly emphasized numbers.
You will all submit:
.qmd
file for your complete analysis.pdf
printed from an .html
).qmd
fileThis will be submitted in a single zipped directory to D2L with a directory name of the form last-first-final
.
Two-minute presentations will be given during the final period assigned to our class.
Upload a separate 3-5 minute video presentation to D2L in .mp4
or .mov
(these can be Zoom recordings or phone recordings).
.qmd
file.Not strictly “Data Visualization and Exploration”, but some of what goes in to it and some of where it goes after.
You may be interested in sharing “content” so others can view it.
GitHub is a website and interface to Git.
Git is a “version control system”, it (among many other things)
It is an alternative to "Final_paper_draft_final_final_done (copy).pdf"
.
Unlike typical cloud storage (e.g., Dropbox, Google Drive, OneDrive), which
A big difference is that cloud software runs in the background, git requires interaction.
You work on something in your office. Then you,
Dropbox
GitHub
Allows for collaboration and user-contributed suggestions.
For example, suppose you were interested in an R package I was developing (but I was afraid you might break it), you might
Now you are a contributor. Maybe I invite you to help manage and give you more trust and responsibility.
While built for hosting versioned copies of source code, GitHub now
It changes often. New, useful features are regularly added, along with their documentation.
Exploring this fully is a class, task, or hobby of its own.
Everything that follows (for a while at least) is voluntary, but recommended.
Some of these steps are tedious to figure out on your own, though documentation and support continues to improve.
If you are interested, feel free to work along. If not, feel free to use class time to work on your final project.
If you care to, create an account at GitHub.
Think carefully about your username
<username>.github,io
), butThe simplest path seems to be described here.
There is quite a bit of effort to get started (hence trying it together with the support of others), but after that, things generally work smoothly.
Visit quarto.org (Getting started) and install Quarto CLI (Command Line Interface).
After this we will need to use the “Terminal” program (either “Terminal” in Mac, the “Command Prompt” in Windows, or “Terminal” window in RStudio). For simplicity let’s try the RStudio terminal window. A few commands are useful.
Command | Use/Notes |
---|---|
pwd | Present Working Directory (shows where you are on the computer) |
cd | Change Directory (to the “home” directory) |
cd .. | Change Directory (to one level “up”) |
cd folder/subfolder | Change Directory (to a folder called “folder” and a named “subfolder”) |
ls | List (list directory contents) |
quarto
Visit quarto.org (GitHub Pages).
Key steps:
_quarto.yml
filerender
and push
to GitHub (now that it has been connected)publish
These steps are done back and forth between your Terminal window and the corresponding GitHub page in your browser.
You may be familiar with pie charts or donut charts.
If pie charts are bad, donuts are worse.
Let’s have waffles.
These can be more easily implemented within ggplot using the waffle
package.
And we can make a small dataset to test this out.
In reality this data might be formed as a summary from a larger dataset, but the data.frame()
command works nicely. Unlike when our numeric data is sometimes read in as "0.12"
, numbers stay numbers.
This won’t run - ggplot
must be tricked into making pie charts.
Changing _pie()
to _waffle()
is close but not quite. Multiply values
by 100 to scale.
You might first want to order from increasing to decreasing (and order the legend accordingly).
Thanks can get surprisingly silly after this, but there’s nothing wrong with that.
Bored with boxes? You can use additional special packages to turn those bland rectangles into pie, fruit, or other suitablly shaped and colored icons.
Sometimes a chart type is expected by experts in the field.
This is a complicated mix of a network and collection of pie charts.
Could you imagine, or design, some other way to show how groups are connected?