.makeServer {SpatialCPie} | R Documentation

## SpatialCPie server

### Description

SpatialCPie server

### Usage

    .makeServer(assignments, scores, colors, image, coordinates)

### 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).
`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.

### Value

server function, to be passed to `shinyApp`.

[Package SpatialCPie version 1.0.0 Index]