plotD | R Documentation |
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)
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 |
Returns a list with the ggplot object and two vectors with the dose group means and their standard errors.
Neal Thomas
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)"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.