Learn R Programming

SemiPar (version 1.0-4.2)

sausage: Sausage data

Description

The sausage data frame has data on 54 `hot dog' sausages.

Usage

data(sausage)

Arguments

Format

This data frame contains the following columns:

type

type of meat.

calories

number of calories.

sodium

measure of sodium content.

References

Ruppert, D., Wand, M.P. and Carroll, R.J. (2003) Semiparametric Regression Cambridge University Press. http://stat.tamu.edu/~carroll/semiregbook/

Examples

Run this code
# NOT RUN {
library(SemiPar)
data(sausage)
attach(sausage)
points.cols <- c("red","blue","green")
plot(sodium,calories,col=points.cols[type],pch=16)
legend(200,180,c("beef","pork","poultry"),col=points.cols,pch=rep(16,3))
# }

Run the code above in your browser using DataLab