Automobile Data from 'Consumer Reports' 1990
cu.summary data frame has 117 rows and 5 columns,
giving data on makes of cars taken from the April, 1990 issue of
This data frame contains the following columns:
a numeric vector giving the list price in US dollars of a standard model
of origin, a factor with levels
an ordered factor with levels
Much worse < worse < average < better < Much better
fuel consumption miles per US gallon, as tested.
a factor with levels
Consumer Reports, April, 1990, pp. 235–288 quoted in
John M. Chambers and Trevor J. Hastie eds. (1992)
Statistical Models in S, Wadsworth and Brooks/Cole,
Pacific Grove, CA, pp. 46–47.
fit <- rpart(Price ~ Mileage + Type + Country, cu.summary)
par(xpd = TRUE)
plot(fit, compress = TRUE)
text(fit, use.n = TRUE)
Dataset imported from https://www.r-project.org.