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


elldc/CellTrails documentation built on May 16, 2020, 4:40 a.m.