Coding Assignment 1

Overview

For this assignment you are going to create a short essay on trends in democracy and human rights. You can use the data that we worked with in class this week or some data of your choice. You will use R to create a data visualization and then you will write a short essay that interprets the data visualization. You will also incorporate additional elements into your document, such as a figure, a hyperlink, a table, a callout box, a block quote, a footnote or some other element that you learned about in class, in the readings, or in the Quarto documentation. Then you will upload the document to Quarto Pub and shsare the link with the class on the Discord server.

Be sure to reference the course material, the Quarto Guide and the Quarto Reference as you work through this assignment.

Submission note: After you share your link with the class, please also submit your document to me via this link.

Step 1: Create a quarto project (20pts)

Create a new project folder and call it assignment-1. Once you have your project open, initialize a Quarto document. In the YAML header, include the following information: title, subtitle, author, format, and execute.

The title and subtitle should reflect the basic contents of the document and the author is you. Set the execute should be set to echo: false, message: false, and warning: false. Save your Quarto document as assignment-1.qmd.

Step 2: Create a data visualization (20 pts)

Create a code chunk and within it write the code that you need to produce a data visualization. This will involve loading the packages you need, importing the data and creating the visualization with ggplot2.

If you do not have prior coding experience, you can use the code for one of the visualizations. If you have prior coding experience, you can create a visualization of your choice. Feel free to be as creative as you like!

Step 3: Incorporate additional elements (20 pts)

Incorporate at least three additional elements to your document. This could be a figure (image), a hyperlink, a table, a callout box, a block quote, a footnote or some other element that you learned about in class, in the readings, or in the Quarto documentation. These could be anything you like but should relate to the basic content and narrative of your document.

Step 4: Summarize your combined data set (20 pts)

Write text in Markdown that summarizes and interprets the data visualizations and the additional elements you have incorporated. Use level 2 headers to divide your content into separate sections. Use bullet points to create lists. Use asterisks to create emphasis by italicizing and/or bolding your text. You can use any other Markdown formatting that you like to make your document look nice and to communicate your ideas effectively.

Step 5: Uplaod your document to Quarto pub (20 pts)

Following the procedure you leanred in class, upload your HTML document to Quarto pub. Remember that you will need to have a Quarto account to do this and that you need to type the relevant command in the terminal (not the console) to upload your document. Once you have your document link, share it with the class on the Discord server.