Learn R Programming

SRTsim (version 0.99.7)

simNewLocs: Fit the marginal distributions for single gene

Description

Fit the marginal distributions for single gene

Usage

simNewLocs(newN, lay_out = c("grid", "random"), preLoc)

Value

Returns a n by 2 dataframe with newly generated spatial locations

Arguments

newN

A integer specifying the number of spatial locations in the synthetic data

lay_out

A character string specifying arrangement of new generated spatial locations. Default is "grid"

preLoc

A data frame of shape n by 3 that x, y coodinates and domain label