auto | R Documentation |
Price, mileage, age and country of origin for 45 automobiles.
auto
This data frame contains the following columns:
Name of model
Country of manufacture
Mileage per gallon
Price of car at time of measurement
Makridakis, Wheelwright and Hyndman (1998) Forecasting: methods and applications, Wiley: New York. Chapter 2.
Consumer Reports, April 1990, pp.235-255.
plot(Price ~ Mileage, data=auto, pch=19, col=2) points(auto$Mileage[auto$Country=="USA"], auto$Price[auto$Country=="USA"], pch=19, col=4) legend(30,25000,legend=c("USA","Japan"), pch=19, col=c(4,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.