Learn R Programming

GENEAsphere (version 1.5.1)

plotSphere: Plot an 3D sequence with sedentary sphere

Description

From the output of the read.bin function in GENEAread to simulate data and create a spherical representation.

Usage

plotSphere(x, start = 0, end = 1, length = NULL,
  time.format = "auto", density = FALSE, col, alpha, arrow = TRUE,
  levels, add = FALSE, ...)

Arguments

x

The AccData input to be plotted

start

start time to enter in the format 0 to 1 or "dd hh:mm:ss"

end

end time to enter in the format 0 to 1 or "dd hh:mm:ss"

length

Length of interval.

time.format

Data extraction via get.intervals

density

Whether to plot a 3d density plot.

col

Colours to use for lines or density plot

alpha

Vector of transparencies to user for density plot

arrow

To display a place holder arrow to establish directionality

levels

Breakpoints for plotting of isospheres for density. Follows the formulation of 0.9 == respective isosphere contains the highest probability 10 of the population, according to kernel density estimate.

add

If draw, superimpose on to existing plot. Else add to a new plot.

...

Arguements that will be passed to the

Value

There is no return to the console. As a side effect an rgl graphic is created.

Details

Takes the raw data output of the GENEActiv as AccData to plot points on the sedentary sphere.

Examples

Run this code
# NOT RUN {
x = readRDS(system.file("extdata", "AccData.rds", package = "GENEAsphere"))
plotSphere(x)
# }

Run the code above in your browser using DataLab