rayplot_single_coordinate: Plot nearest neighbor ray plots for a single coordinate

Description Usage Arguments Value Examples

Description

Plot nearest neighbor ray plots for a single coordinate

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
7
#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+")

gusef/IrisSpatialFeatures documentation built on May 6, 2019, 9:50 p.m.