plotSegmentSphere: Create a spherical representation

Description Usage Arguments Details Value Examples

View source: R/visualisation.R

Description

From the segmentation features simulate data and create a spherical representation

Usage

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

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

Value

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

Examples

1
2
3
4
5
6
7
## 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)
## End(Not run)

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