.fit_surface {CellTrails}R Documentation

Fitting the map surface

Description

Fits the smooth surface of CellTrails maps

Usage

.fit_surface(X, y, npoints = 300, weights = NULL, knots = 10, rescale = FALSE)

Arguments

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

Value

A list containing the following components:

fit

GAM fit object

grid

Fitted values

Author(s)

Daniel C. Ellwanger


[Package CellTrails version 1.11.0 Index]