plotD {clinDR}R Documentation

Basic plot of dose group means

Description

Plot dose group means vs dose with options to connect points by lines, and include CI about each dose group mean based on within-group SDs

Usage

plotD(y, dose, baseline, se = TRUE, line = TRUE, 
    meansOnly=FALSE,sem=NULL,clev = 0.9, 
    xlab='Dose',ylab='Response', logScale=FALSE)

Arguments

y

Outcomes

dose

Doses corresponding to outcomes

baseline

If present, ANACOVA means are plotted, adjusted for baseline. Baseline is optional.

se

If T, plot CI for each dose group.

line

If T, dose group means are connected by a line

meansOnly

If T, y contains dose group means rather than individual observations. Baseline cannot be specified.

sem

If meansOnly and se=T, sem must contain the corresponding standard errors

clev

Level of CI for dose group means

xlab

Label for x-axis

ylab

Label for y-axis

logScale

If TRUE, log scale is used for dose.

Value

Returns a list with the ggplot object and two vectors with the dose group means and their standard errors.

Author(s)

Neal Thomas

See Also

plot.fitEmax, plotB

Examples

data("metaData")
exdat<-metaData[metaData$taid==2 & metaData$etype==1,]
with(exdat,plotD(rslt,dose,meansOnly=TRUE,se=TRUE,sem=se,ylab=
"Y",xlab="Dose(mg)"))

[Package clinDR version 2.4.1 Index]