Diff of /man/addSpatialLayer.Rd [000000] .. [413088]

Switch to unified view

a b/man/addSpatialLayer.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/visualization.R
3
\name{addSpatialLayer}
4
\alias{addSpatialLayer}
5
\title{addSpatialLayer}
6
\usage{
7
addSpatialLayer(
8
  g,
9
  object,
10
  assay,
11
  group.by = "Sample",
12
  plot.segments = FALSE,
13
  group.ids = NULL,
14
  reg = FALSE,
15
  colors = NULL,
16
  alpha = 1,
17
  n.tile = 0,
18
  pt.size = 2,
19
  cell.shape = 21,
20
  graph = NULL,
21
  graph.edge.color = "orange",
22
  spatial = NULL
23
)
24
}
25
\arguments{
26
\item{g}{ggplot object}
27
28
\item{object}{a VoltRon object}
29
30
\item{assay}{assay name (exp: Assay1) or assay class (exp: Visium, Xenium), see \link{SampleMetadata}. 
31
if NULL, the default assay will be used, see \link{vrMainAssay}.}
32
33
\item{group.by}{a column of metadata from \link{Metadata} used as grouping label for the spatial entities}
34
35
\item{plot.segments}{plot segments from \link{vrSegments} instead of points}
36
37
\item{group.ids}{a subset of categories defined in metadata column from \code{group.by}}
38
39
\item{reg}{TRUE if registered coordinates of the main image (\link{vrMainSpatial}) is requested}
40
41
\item{colors}{the color set for group.by. Should be of the same size of group.id (if specified) or unique elements in group.by}
42
43
\item{alpha}{alpha level of colors of visualized points and segments}
44
45
\item{n.tile}{should points be aggregated into tiles before visualization (see \link{geom_tile}). Applicable only for cells and molecules}
46
47
\item{pt.size}{point size}
48
49
\item{cell.shape}{the shape of the points representing cells, see \link{geom_point}}
50
51
\item{graph}{if not NULL, the graph is added to the plot}
52
53
\item{graph.edge.color}{the color of graph edges, if \code{graph} is not NULL.}
54
55
\item{spatial}{the name of the main spatial system}
56
}
57
\description{
58
adding additional layers of spatial plots to an existing \link{vrSpatialPlot}.
59
}