Description Usage Arguments Value Note Examples

Standardize height values of a scan by centering/scaling by desired statistics and replacing missing values

1 2 3 4 5 6 | ```
comparison_standardizeHeights(
heightValues,
withRespectTo = "individualCell",
centerBy = mean,
scaleBy = sd
)
``` |

`heightValues` |
list/tibble column of x3p objects |

`withRespectTo` |
currently ignored |

`centerBy` |
statistic by which to center (i.e., subtract from) the height values |

`scaleBy` |
statistic by which to scale (i.e., divide) the height values |

A list of the same length as the input containing x3p objects with standardized surface matrices

this function adds information to the metainformation of the x3p scan it is given that is required for calculating, for example, the pairwise-complete correlation using the comparison_cor function.

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
data(fadul1.1_processed,fadul1.2_processed)
cellTibble <- fadul1.1_processed %>%
comparison_cellDivision(numCells = 64) %>%
dplyr::mutate(regionHeightValues = comparison_getTargetRegions(cellHeightValues = cellHeightValues,
target = fadul1.2_processed)) %>%
dplyr::mutate(cellPropMissing = comparison_calcPropMissing(heightValues = cellHeightValues),
regionPropMissing = comparison_calcPropMissing(heightValues = regionHeightValues)) %>%
dplyr::filter(cellPropMissing <= .85 & regionPropMissing <= .85) %>%
dplyr::mutate(cellHeightValues = comparison_standardizeHeights(heightValues = cellHeightValues),
regionHeightValues = comparison_standardizeHeights(heightValues = regionHeightValues))
head(cellTibble)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.