IniziaInizia gratis

EDA for vocabulary score vs. social class

Before we conduct inference, we should take a look at the distributions of vocabulary scores across the levels of (self identified) social class.

Questo esercizio fa parte del corso

Inference for Numerical Data in R

Visualizza il corso

Istruzioni dell'esercizio

  • Using gss, plot the distribution of vocabulary scores, wordsum.
  • Make this a histogram, using an appropriate binwidth.
  • Facet this histogram, wrapping by social class level.
  • Look at the plot! Compare the distributions of vocabulary scores across the levels of (self identified) social class.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Using gss, plot wordsum
ggplot(___, mapping = ___) +
  # Add a histogram layer
  ___ +
  # Facet by class
  facet_wrap(___)
Modifica ed esegui il codice