Learn R Programming

ALTopt (version 0.1.0)

design.plot: Design plot.

Description

design.plot draws design plot as a form of a bubble plot of any two stress factors which are specified by xAxis and yAxis. The size of each bubble indicates the relative magnitude of allocation on each design point.

Usage

design.plot(design, xAxis, yAxis)

Arguments

design
the data frame containing the coordinates and the number of allocation of each design point. The design created by either altopt.rc or altopt.ic or any
xAxis
the name of the factor to be displayed in x axis.
yAxis
the name of the factor to be displayed in y axis.

Value

  • The bubble plot of a design with two stress factors.

Examples

Run this code
# Design plot of D optimal design with right censoring.
Design1 <- altopt.rc("D", 100, 100, 2, 1, formula = ~ x1 + x2 + x1:x2,
coef = c(0, -4.086, -1.476, 0.01))

design.plot(Design1$opt.design.rounded, x1, x2)

Run the code above in your browser using DataLab