Description Usage Arguments Details Author(s) Examples
Instantiate new ggobi with a longitudinal data set.
1 | ggobi_longitudinal(data, time=1:rows, id=rep(1, rows), g = NULL)
|
data |
data frame |
time |
time variable |
id |
id variable |
g |
ggobi instance, if you don't want to create a new one |
This function allows you to load longitudinal data in to GGobi and display it as a line plot. This is achieved by creating edges between adjacent time points, for a given id variable.
For best viewing, we recommend that you turn the show points off in the options menu. When brushing, you may also want to use categorical brushing on the id variable, so that the entire series is selected for an observation.
Hadley Wickham <h.wickham@gmail.com>
1 2 3 4 5 | data(Oxboys, package="nlme")
if (interactive()) {
ggobi_longitudinal(Oxboys, Occasion, Subject)
ggobi_longitudinal(stormtracks, seasday, id)
ggobi_longitudinal(data.frame(x=1:100, y=sin(1:100)))}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.