plotSphere: Plot an 3D sequence with sedentary sphere

Description Usage Arguments Details Value Examples

View source: R/plotSphere.R

Description

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

Usage

1
2
3
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

Details

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

Value

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

Examples

1
2
3
4
## Not run: 
x = readRDS(system.file("extdata", "AccData.rds", package = "GENEAsphere"))
plotSphere(x)
## End(Not run)

GENEAsphere documentation built on Dec. 5, 2019, 5:11 p.m.