ComenzarEmpieza gratis

Boxplot

The dataset you're about to use has been derived from the Quarterly Interview Survey of the Consumer Expenditure Survey (CES) by the U.S. Department of Labor, Bureau of Labor Statistics. It is available on the course page. The original data set comprises 869 households and 34 variables.

One feature is a unique ID, five characterize the size of the household, six contain other characteristics of the household like age, education ethnicity, etc. The rest of the variables represent the household expenditures. We focus on the variable thexp, already extracted for you and available in the workspace, corresponding to total household expenditure.

So far, visualizations were provided. Now, you will build your own boxplot! The package robustbase has been loaded for you.

Este ejercicio forma parte del curso

Fraud Detection in R

Ver curso

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Create boxplot
bp.thexp <- ___(___, col = "lightblue", main = "Standard boxplot", ylab = "Total household expenditure")
Editar y ejecutar código