rayplot_single_coordinate {IrisSpatialFeatures} | R Documentation

## Plot nearest neighbor ray plots for a single coordinate

### Description

Plot nearest neighbor ray plots for a single coordinate

### Usage

    rayplot_single_coordinate(x, from_type, to_type, samp_name = "",
      from_col = "#EE7600", to_col = "#028482", lineColor = "#666666",
      use_pixel = FALSE, microns_per_pixel = 0.496)

    ## S4 method for signature 'Coordinate'
    rayplot_single_coordinate(x, from_type, to_type,
      samp_name = "", from_col = "#EE7600", to_col = "#028482",
      lineColor = "#666666", use_pixel = FALSE, microns_per_pixel = 0.496)

### Arguments

`x` | An Coordinate object
`from_type` | Cell type from which the rays are drawn
`to_type` | Cell type to which the rays are drawn
`samp_name` | Name of the sample
`from_col` | Color for the 'from' cell-type (Default: '#EE7600')
`to_col` | Color for the 'to' cell-type (Default: '#028482')
`lineColor` | Color for the line (Default: '#666666')
`use_pixel` | Express units as pixels (Default: FALSE)
`microns_per_pixel` | Conversion (Default: 0.496)

### Value

a plot

### Examples

    #loading pre-read dataset
    dataset <- IrisSpatialFeatures_data
    dataset <- extract_nearest_neighbor(dataset)
    rayplot_single_coordinate(x = dataset@samples[[1]]@coordinates[[1]],
                              samp_name = dataset@samples[[1]]@sample_name,
                              from_type = "SOX10+ PDL1+",
                              to_type = "CD8+ PD1+")

[Package IrisSpatialFeatures version 1.3.0 Index]