Description Format Source Examples
The O.xylene
data frame has 57 rows and 4 columns of data on a
chemical engineering experiment.
This data frame contains the following columns:
a numeric vector giving the oxygen partial pressure.
a numeric vector giving the O.xylene partial pressure.
a numeric vector giving the temperature (Kelvins).
a numeric vector giving the rate of reaction.
Bates and Watts (1998), Nonlinear Regression Analysis and Its Applications, Wiley (Appendix A1.6).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | str(O.xylene)
tempf <- with(O.xylene, ordered(temp))
levels(tempf) <- paste(levels(tempf), "K")
Oxygen <- with(O.xylene, equal.count(oxygen))
O.xyl <- with(O.xylene, equal.count(o.xyl))
xyplot(rate ~ o.xyl | Oxygen * tempf, O.xylene,
type = c("g", "p"), aspect = 'xy',
xlab = "O.xylene partial pressure",
ylab = "Reaction rate")
xyplot(rate ~ o.xyl | Oxygen, O.xylene, groups = tempf,
type = c("g", "p"), aspect = 2.5,
xlab = "O.xylene partial pressure",
ylab = "Reaction rate",
auto.key = list(space = "right"))
xyplot(rate ~ oxygen | O.xyl, O.xylene, groups = tempf,
type = c("g", "p"), aspect = 2.5,
xlab = "Oxygen partial pressure",
ylab = "Reaction rate",
auto.key = list(space = "right"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.