Learn R Programming

GENEAsphere (version 1.5.1)

plotSegmentFlat: Plot a flat representation

Description

Create a flat representation of the spherical data.

Usage

plotSegmentFlat(segmentationCSV, plotRows, col = c("white",
  heat.colors(5, alpha = c(0.3, 0.2, 0.1, 0.05, 0.03))),
  singlePlot = TRUE, 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.

col

A vector of colours.

singlePlot

(logical) Indicates wether all rows should be added to one 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 plot on a flat representation of 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 a graphic is created.

Examples

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

Run the code above in your browser using DataLab