powered by
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
plotD(y, dose, baseline, se = TRUE, line = TRUE, meansOnly=FALSE,sem=NULL,clev = 0.9, xlab='Dose',ylab='Response', logScale=FALSE)
Returns a list with the ggplot object and two vectors with the dose group means and their standard errors.
Outcomes
Doses corresponding to outcomes
If present, ANACOVA means are plotted, adjusted for baseline. Baseline is optional.
If T, plot CI for each dose group.
If T, dose group means are connected by a line
If T, y contains dose group means rather than individual observations. Baseline cannot be specified.
If meansOnly and se=T, sem must contain the corresponding standard errors
Level of CI for dose group means
Label for x-axis
Label for y-axis
If TRUE, log scale is used for dose.
TRUE
Neal Thomas
plot.fitEmax, plotB
plot.fitEmax
plotB
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)"))
Run the code above in your browser using DataLab