design.plot {ALTopt}R Documentation

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 design matrix with the same form as those can be provided for this argument.

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

## Not run: 
# 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)

## End(Not run)

[Package ALTopt version 0.1.2 Index]