Description Usage Arguments Details Value Author(s) See Also Examples
This function is a convenient wrapper for rm.plot that aggregates the data per individual dataset and passes the resulting data to rm.plot.
1 |
d |
A |
col.id |
|
col.offset |
|
col.x |
|
col.d |
|
fun.aggregate |
Function or function name used for aggregating the results. Default is |
... |
further arguments passed to |
Uses aggregate
with formula notation for aggregation.
nothing (a plot is created using base graphics)
Henrik Singmann
add.ps
can be used to compare the values at each x-axis position.
rm.plot
has all the arguments.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
#The examples uses the OBrienKaiser dataset from car and needs reshape.
require(reshape)
require(car)
data(OBrienKaiser)
OBKnew <- cbind(factor(1:nrow(OBrienKaiser)), OBrienKaiser)
colnames(OBKnew)[1] <- "id"
OBK.long <- melt(OBKnew)
OBK.long[, c("measurement", "time")] <- t(vapply(strsplit(as.character(OBK.long$variable), "\\."), "[", c("", "")))
rm.plot2(OBK.long, "id", "measurement", "gender", "value")
rm.plot2(OBK.long, "id", "treatment", "gender", "value")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.