Learn R Programming

CrossExpression (version 1.0.0)

bullseye_plot: Outputs a circular bullseye plot for a gene pair. The central circle is gene B in cells expressing gene A. Rings indicate neighbors with gene B, where the first ring is the first neighbor.

Description

Outputs a circular bullseye plot for a gene pair. The central circle is gene B in cells expressing gene A. Rings indicate neighbors with gene B, where the first ring is the first neighbor.

Usage

bullseye_plot(scores)

Value

Returns a circular bullseye plot.

Arguments

scores

Bullseye score as a vector.

Examples

Run this code
data("locations")
data("expression")
locations  = as.matrix(locations)
expression = as.matrix(expression)
expression = expression[,1:5]
results    = bullseye_scores(data = expression, locations = locations)
results    = as.numeric(results[1, 3:ncol(results)]) # choose gene pair of interest (row index)
bullseye_plot(results)

Run the code above in your browser using DataLab