Final Project Guidelines
Data 309 - Fall 2026
The final project is worth 20% of your final grade. Here’s how your final project will be graded.
Note: If you make a Shiny app, you may incorporate it into the framework below as you see fit.
Required Organizational Structure
Section: Introduction (10%) Your introduction should clearly state the research question(s) addressed by your project. The goal of this section is to make your reader interested in the topic of your project.
Section: Data (10%) The data section should clearly indicate where and how to access the data you used, so that any reader could replicate your analysis.
Section: Analysis and Results (20%) This section should present the main figures and tables that answer your research question.
Section: Conclusion (10%) The conclusion should summarize your findings and discuss next steps that you (or someone else interested in your topic) could take to explore your question further.
General Design Principles
Aesthetics (10%) Use appropriately sized headings (begin the line with
#,##,###or####) to indicate separate sections. The narrative of your project should be easy to follow: include some text, but not too much. Use color appropriately. Edit the Quarto YAML to include nice details (title, author, date, table of contents, theme).Tiny Details (10%) Your project should be free of spelling and grammatical mistakes. Paste your text into Word if you need help, or have someone else proofread your project. Make sure the text in your legends and on your axes is formatted well.
Code (20%) All of your R chunks should be well organized and easy to follow. The key here is that all of your code should work. Make clear the origins of your data so that others can reproduce your work: with the data described in your data section, I should be able to render your Quarto document without any errors. Try to include:
mutate(),filter(),select(),slice_*(),distinct()group_by()orpivot_longer()/pivot_wider()- a for loop or your own
function() cut()oracross()orcase_when()scale_*(),theme()
Presentation
- Practice Being Professional (10%)
- You don’t have to dress up, but no hats or sunglasses.
- Make sure your document is loaded, running and displays properly.
- Use full-screen mode and hide your tabs and bookmarks (
F11, orFn+F11on some laptops). - Draw our attention to at least one part of your code: explain what it does, why you like it, etc.
Submission
You’ll submit your final project with git, in a private class repository on GitHub. Only your classmates and I can see it; it is not public. (You’re welcome to make a public copy for your portfolio after the semester.)
Accept the invitation. I’ll send you an invite to the repository. Accept it by email or at https://github.com/notifications.
Clone it (one time only). In Git Bash, from the folder where you keep your class work:
git clone https://github.com/joshtanga/dat309-final-projects.gitPut your project in your own folder. Your folder is already made for you, using the same username as your
shiny-collabfolder, and it starts with a template to fill in:students/ └── <your-username>/ └── final-project/ ├── final-project.qmd ← your Quarto document ├── final-project.html ← the rendered version ├── README.md ← title, your name, and one sentence about the project └── data/ ← your data files (each under 25 MB)Read your data with relative paths, like
read_csv("data/my-data.csv"), so the project renders on my computer too. If you make a Shiny app, put it in this folder asapp.R.Commit as you go. Save your work to the repository regularly, not just once at the end. Only add files inside your own folder:
git pull git add students/<your-username>/final-project git commit -m "add summary table and first map" git pushIf
git pushis rejected because someone else pushed first, rungit pull, thengit pushagain. For other problems, see the troubleshooting tips in theshiny-collabREADME.Before the deadline: render your
.qmdone last time so the.htmlis up to date, then commit and push. Your last push before the deadline is your submission. Check that it worked:git statusshould say “nothing to commit”, and your files should appear on GitHub.
Recommended Extras
These are things we used this semester. Pick the ones that help answer your question; you don’t need all of them.
Getting and cleaning data
- Import your data in code with
read_csv(),read_excel()or straight from a URL, using relative paths (neverC:/Users/...). - Clean up column names with
janitor::clean_names(). - Combine datasets with
left_join()(like we did with the Zillow and election data). - Clean up text with
stringrfunctions and regular expressions (str_detect(),str_replace(),str_to_title()).
Visualization
- Student favorite ggplot extensions.
- Make an animation with the
gganimatepackage. - Make a geographic map with the
sfpackage (orusmapfor U.S. states and counties). - Make a heatmap with
geom_tile()andgeom_text()labels. - Format axis labels with
scales(label_percent(),label_dollar(),label_comma()), and order bars withfct_reorder().
Statistics
- Report summary statistics (mean, median, standard deviation, n) with
group_by()+summarize(). - Fit a linear model with
lm(), and show its coefficients withggcoef_model()fromggstatsortidy()frombroom.
Interactivity and sharing
- Make a Shiny app, or include an interactive plot with
plotly. - Show off your best plot in your
README.mdwith a screenshot:.
General advice
- Use the textbook. Browse the table of contents; it’s excellent.
- Suppress messages and warnings in your R chunks: add
#| message: falseand#| warning: falseat the top of a chunk, or set them once for the whole document underexecute:in the YAML. - Remember: original ideas, mastery of the basics and clear communication often beat new-fangled widgets.