Description Usage Arguments Details Value Examples
View source: R/visualisation.R
From the segmentation features simulate data and create a spherical representation
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)
|
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) |
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:
UpDown.median
UpDown.mad
Degrees.median
Degrees.mad
There is no return to the console. As a side effect an rgl graphic is created.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.