normalize_spatial {STDistance} | R Documentation |
Normalize spatial coordinates
Description
Normalize spatial coordinates
Usage
normalize_spatial(
data,
sample_col = "Sample",
x_col = "pxl_row_in_fullres",
y_col = "pxl_col_in_fullres",
min_value = 1,
max_value = 10000
)
Arguments
data |
A data frame containing spatial coordinates |
sample_col |
Column name specifying sample IDs |
x_col |
Column name for x-coordinates |
y_col |
Column name for y-coordinates |
min_value |
Minimum value for normalization range |
max_value |
Maximum value for normalization range |
Value
A data frame with normalized coordinates
Examples
tissue_posi_normalized<-normalize_spatial(tissue_posi)
[Package STDistance version 0.6.6 Index]