Description Usage Arguments Value Examples
Plots the raw data, the mean and the fitted or derivative information of the lmmspline
object.
1 2 |
x |
An object of class |
y |
|
data |
alternative |
time |
alternative |
smooth |
an optional |
mean |
alternative |
... |
Additional arguments which are passed to |
plot showing raw data, mean profile and fitted profile.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
data(kidneySimTimeGroup)
# running for samples in group 1
G1 <- which(kidneySimTimeGroup$group=="G1")
testLmmspline <- lmmSpline(data=kidneySimTimeGroup$data[G1,],
time=kidneySimTimeGroup$time[G1],
sampleID=kidneySimTimeGroup$sampleID[G1],keepModels=T)
plot(testLmmspline, y=2)
plot(testLmmspline, y=2, smooth=TRUE)
# Don't keep the models to improve memory usage
testLmmspline <- lmmSpline(data=kidneySimTimeGroup$data[G1,],
time=kidneySimTimeGroup$time[G1],
sampleID=kidneySimTimeGroup$sampleID[G1],keepModels=F)
#plot only the fitted values
plot(testLmmspline, y=2)
#plot fitted values with original data
plot(testLmmspline, y=2, data=kidneySimTimeGroup$data[G1,], time=kidneySimTimeGroup$time[G1])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.