The Marriage
data is in the mosaic
package, which you must first load with the command library(mosaic)
. You can read more about the data and the variables here: https://rdrr.io/cran/mosaicData/man/Marriage.html. You can also use the help command ?Marriage
for a description of the data.
# Construct your plots in this code chunk
library(mosaic)
library(tidyverse)
Answer the question in this space.
# Construct your plots in this code chunk
library(mosaic)
library(tidyverse)
Answer the question in this space.
# Construct your plots in this code chunk
library(mosaic)
library(tidyverse)
Answer the question in this space.
The Gestation
data set is also part of the mosaic
package. Use the help command ?Gestation
for a description of the data.
# Construct your plots in this code chunk
library(tidyverse)
library(mosaic)
Answer the question in this space.
# Construct your plots in this code chunk
library(tidyverse)
library(mosaic)
Answer the question in this space.
# Construct your plots in this code chunk
library(tidyverse)
library(mosaic)
Answer the question in this space.
# Construct your plots in this code chunk
library(tidyverse)
library(mosaic)
Answer the question in this space.
For this exercise, you will load data from an external source. You can read about the data here: http://sta220.utstat.utoronto.ca/data/the-skeleton-data/.
The data are in a plain text file with spaces between columns here: http://stats.onlinelearning.utoronto.ca/wp-content/uploaded/Data/SkeletonDatacomplete.txt. The following code will load the data into a tibble (the tidyverse version of a data frame).
R
using the following code.library(tidyverse)
data_url <- "http://stats.onlinelearning.utoronto.ca/wp-content/uploaded/Data/SkeletonDatacomplete.txt"
skeleton_data <- read_table(data_url)
Inspect the data to make sure it is read in completely. You can compare by going directly to the data_url
.
Example graph of one categorical variable:
# Construct your plots in this code chunk
library(tidyverse)
Example graphs of one quantitative variable:
# Construct your plots in this code chunk
library(tidyverse)
Example graphs with two variables:
# Construct your plots in this code chunk
library(tidyverse)
Example graphs with three variables:
# Construct your plots in this code chunk
library(tidyverse)
Answer the question in this space.