Learn R Programming

GENEAsphere (version 1.5.1)

plotSegmentProjection: Plot a projection representation

Description

Create a projection representation of the spherical data

Usage

plotSegmentProjection(segmentationCSV, plotRows, projection = "aitoff",
  col = "red", 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.

projection

The type of projection to be used. Can be any of those used by mapproject in the package mapproj.

col

A character string to indicate the colour of the heat mapping.

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 plotted on a projected 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:1)
plotSegmentProjection(segmentationCSV, plotRows, projection = "aitoff", 
                    col = "red", singlePlot = TRUE, nsims = 1000)
# }

Run the code above in your browser using DataLab