Basic viz
The goal for this assignment is to review basic data visualization types for one and two variables.
Loading packages
By convention, the first code chunk in a Quarto document contains all the packages necessary for the document. Include whatever packages you need in this chunk.
Loading data
Next, you will need to use some data. You can’t use the bechdel
data, so find a dataset with at least two quantitative variables, and two categorical ones. If you want to find one that can be loaded directly from within R, look at this list of R datasets.
Data visualization of one quantitative variable
Pick a single quantitative variable and create a data visualization of it.
In a sentence, explain what you can tell about the variable from this plot.
Data visualization of one categorical variable
Pick a single categorical variable and create a data visualization of it.
In a sentence, explain what you can tell about the variable from this plot.
Data visualization of two quantitative variables
Pick two quantitative variables and create a data visualization of the relationship between them.
In a sentence, explain what you can tell about the relationship between the variables from this plot.
Data visualization of two categorical variables
Pick two categorical variables and create a data visualization of the relationship between them. (Warning: this one is tough!)
In a sentence, explain what you can tell about the relationship between the variables from this plot.
Data visualization of one quantitative, one categorical variable
Pick one quantitative and one categorical variable, and create a data visualization of the relationship between them.
In a sentence, explain what you can tell about the relationship between the variables from this plot.