Description Usage Arguments Value Author(s) Examples
Compare groups based on trajectory plots. Trajectories belonging to different groups will have different colors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
data |
A data frame. Rows are subjects; Columns are variables describing the subjects. |
x |
character. The column name of |
y |
character. The column name of |
sid |
character. The column name of |
group |
character. The column name of |
xFlag |
logical. Indicate if |
points |
logical. Indicates if points will be added to the trajectories on the coordinate (x, y). |
point.size |
numeric. size of the data points on the trajectories |
theme_classic |
logical. Use classic background without grids (default: TRUE). |
xlab |
character. x axis label |
ylab |
character. y axis label |
title |
character. title of plot |
xLevel |
character. A character vector indicating the order of the elements of |
addThemeFlag |
logical. Indicates if light blue background and white grid should be added to the figure. |
... |
other input parameters for facet & theme |
A list with the following 9 elements: data
, layers
, scales
, mapping
, theme
, coordinates
, facet
,
plot_env
, and labels
.
Wenfei Zhang <Wenfei.Zhang@sanofi.com>, Weiliang Qiu <Weiliang.Qiu@sanofi.com>, Xuan Lin <Xuan.Lin@sanofi.com>, Donghui Zhang <Donghui.Zhang@sanofi.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | data(longDat)
print(dim(longDat))
print(longDat[1:3,])
print(table(longDat$time, useNA = "ifany"))
print(table(longDat$grp, useNA = "ifany"))
print(table(longDat$sid, useNA = "ifany"))
print(table(longDat$time, longDat$grp))
statVisual(type = "LinePlot",
data = longDat,
x = 'time',
y = 'y',
sid = 'sid',
group = 'grp')
LinePlot(
data = longDat,
x = 'time',
y = 'y',
sid = 'sid',
group = 'grp')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.