Learn R Programming

rggobi (version 2.1.22)

ggobi_longitudinal: Create longitudinal dataset.

Description

Instantiate new ggobi with a longitudinal data set.

Usage

ggobi_longitudinal(data, time=1:rows, id=rep(1, rows), g = NULL)

Arguments

data

data frame

time

time variable

id

id variable

g

ggobi instance, if you don't want to create a new one

Details

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.

Examples

Run this code
# NOT RUN {
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)))}
# }

Run the code above in your browser using DataLab