Description Format Source Examples
The Lubricant
data frame has 53 rows and 3 columns on the
viscosity of a lubricant at different pressures and temperatures.
This data frame contains the following columns:
a numeric vector of pressures (stokes).
a numeric vector of observed log(kinematic viscosity).
a numeric vector of temperatures (degrees Celsius).
Bates and Watts (1998), Nonlinear Regression Analysis and Its Applications, Wiley (Appendix A1.5).
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
str(Lubricant)
require(lattice)
tempf <- as.factor(Lubricant$tempC)
levels(tempf) <- paste(c(0.0,25.0,37.8,98.9),"C")
xyplot(viscos ~ pressure, Lubricant, groups = tempf,
xlab = "Pressure (atm)", type = c("g", "p"),
ylab = "kinematic viscosity (stokes)",
scales = list(y = list(log = 2)),
auto.key = list(space = "top", columns = 4))
rm(tempf)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.