Skip to contents

For a spicy() result with several radii, plots the p-value of each chosen pair at every radius, to show the scale at which the evidence is strongest. The combined p-value over the radii is in topPairs().

Usage

radiusPlot(results, from, to)

Arguments

results

The SpicyResults object returned by spicy() with several radii (r).

from, to

The from and to cell types of the pairs to show: every pair between them.

Value

A ggplot.

Examples

data("diabetesData")
diabetes <- diabetesData[, diabetesData$stage %in% c("Non-diabetic", "Onset")]
res <- spicy(diabetes, condition = "stage", subject = "case", r = c(25, 50, 75),
             from = c("Tc", "Th"), to = "beta")
radiusPlot(res, from = c("Tc", "Th"), to = "beta")