interpolate | R Documentation |
Gridded bivariate interpolation For interpolating primary spatial patterns
interpolate( pos, gexp, scale = TRUE, trim = 0, zlim = range(gexp), fill = TRUE, binSize = 100, col = colorRampPalette(c("blue", "white", "red"))(100), plot = TRUE, ... )
pos |
Position matrix |
gexp |
Feature value |
scale |
Boolean of whether to scale feature value |
trim |
Winsorization trim |
zlim |
Feature value range |
fill |
Boolean of whether to interpolate regions with no expression value |
binSize |
Size of interpolated bins |
col |
Color palette |
plot |
Boolean of whether to plot |
... |
Additional parameters for plotting |
2D matrix of interpolated feature values
data(mOB) pos <- mOB$pos gexp <- normalizeCounts(mOB$counts, log=FALSE, verbose=FALSE)['Camk4',] invisible(interpolate(pos, gexp, zlim=c(-2,2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.