.fit_surface {CellTrails} | R Documentation |
Fits the smooth surface of CellTrails maps
.fit_surface(X, y, npoints = 300, weights = NULL, knots = 10, rescale = FALSE)
X |
Ordination; numerical matrix |
y |
Expression values; numerical vector |
npoints |
Number of points along x and y axis |
weights |
Cluster states (defines weights based on fraction of non-detects per state) |
knots |
Number of knots in spline function |
A list containing the following components:
|
GAM fit object |
|
Fitted values |
Daniel C. Ellwanger