dot-fit_surface: Fitting the map surface

Description Usage Arguments Value Author(s)

Description

Fits the smooth surface of CellTrails maps

Usage

1
.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


CellTrails documentation built on Nov. 8, 2020, 5:53 p.m.