dot-makeServer: SpatialCPie server

Description Usage Arguments Value

Description

SpatialCPie server

Usage

1
2
.makeServer(assignments, clusterMeans, counts, scores, colors, image,
  coordinates, featureName)

Arguments

assignments

data.frame with cluster assignments containing the columns "unit" (name of the observational unit; either a gene name or a spot name), "resolution", "cluster", and "name" (a unique identifier of the (resolution, cluster) pair).

clusterMeans

data.frame with columns "name", "resolution", "cluster", featureName, and "mean".

scores

data.frame with cluster scores for each spot in each resolution containing the columns "spot", "resolution", "cluster", "name", and "score".

colors

vector of colors for each cluster. Names should match the "name" columns of the assignments and scores.

image

background image for the array plots, passed to grid.raster.

coordinates

data.frame with rownames matching the names in scores and columns "x" and "y" specifying the plotting position of each observation.

featureName

character with the name of the clustered feature.

Value

server function, to be passed to shinyApp.


jbergenstrahle/SpatialCPie documentation built on April 5, 2020, 7:56 a.m.