Learn R Programming

GENEAsphere (version 1.5.1)

plotSegmentSphere: Create a spherical representation

Description

From the segmentation features simulate data and create a spherical representation

Usage

plotSegmentSphere(segmentationCSV, plotRows, levels = c(0.9, 0.75, 0.5,
  0.25, 0.1), singlePlot = TRUE, col = heat.colors(5),
  alpha = c(0.03, 0.05, 0.1, 0.2, 0.3), arrow = FALSE, nsims = 1000)

Arguments

segmentationCSV

The file path to the csv file created from the segmentation process containing all features.

plotRows

The rows from the csv file to be used to simulate plotting data.

levels

breakpoints for plotting density.

singlePlot

(logical) Indicates wether all rows should be added to one plot.

col

A vector of colours.

alpha

The range of alpha values to be used for plotting colours

arrow

(logical) Indicates whether an arrow for directionality should be added to the plot.

nsims

The number of simulated values to plot. (Default = 1000 however, if your computer has little RAM reduce this)

Value

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

Details

This function takes the features from the segmentation procedure and uses them to simulate data for elevation and rotation. This data is then rotated to give the spherical representation which is ploted on the sphere. Required columns are:

  1. UpDown.median

  2. UpDown.mad

  3. Degrees.median

  4. Degrees.mad

Examples

Run this code
# NOT RUN {
segmentationCSV = system.file("data", "SegData.csv", package = "GENEAsphere")
plotRows = c(1:1)
plotSegmentSphere(segmentationCSV, plotRows, levels = c(0.9, 0.75, 0.5, 0.25, 0.1),
                  singlePlot = TRUE, col = heat.colors(5),
                  alpha = c(0.03, 0.05, 0.1, 0.2, 0.3), arrow = FALSE, nsims = 1000)
# }

Run the code above in your browser using DataLab