3: Data Notebooks
Data Wrangling and Visualization
Before attempting this assignment, be sure to follow the instructions noted in Week 2 page under “Course Content”.
Submit: .qmd file; HTML file; docx file (Due Week 3)
- Create a Quarto file, titled “Week 3 Homework.qmd”.1
- In Positron: Click “New” in the toolbar, then “New File”, and then select “.qmd file” in the dropdown that appears.
- In RStudio:
File>>New File>>Quarto Document. Select “HTML” output and uncheck “use visual markdown editor”. (You can always switch later.)
- Use the 2005 British Election study file (
bes2005subset.csv) to create a jittered scatterplot of Feelings toward Blair and Feelings on Social Spending. - In a brief text segment, interpret what the figure shows you.
- Load the 2000 National Election study file (
nes2000subset.csv). - Find the correlation between income and partisanship, and draw a jittered scatter plot of partisanship (Y axis) and income (X-axis)
- In a brief text segment, interpret what the correlation and figure tells you.
- Render the document to HTML and docx and zip all three (.qmd, .html, and .docx files) together. Upload the .zip to Blackboard.2