Description Usage Arguments Value Examples
View source: R/make_lineup_data.R
Function to create stacked dataframe with M pairs of plots based on original dataframe named dat. ItWill randomize the order labels used in building plot lineup
1 2 | make_lineup_dat(M, dat, xname = "x", yname = "y", seed = NULL,
bootstrap = FALSE, jitter = 0, both = FALSE)
|
M |
number of pairs of plots |
dat |
dataframe |
xname |
column name from dat for x-dimension in plots (defaults "x") |
yname |
column name from dat for y-dimension in plots (defaults "y") |
seed |
set random seed for reproducible lineups |
bootstrap |
logical indicator of if (bootstrap==TRUE) bootstrapping used, if (bootstrap==FALSE) then LOESS residuals permuted |
jitter |
amount of jitter to add to point locations - units of sds |
both |
logical indicator to run both LOESS residual permutation and bootstrapping of points |
dataframe with columns x, permy, type, order
1 2 3 4 | dat=data.frame(x=rnorm(25))
dat$y=dat$x+rnorm(25)
lineup_dat = make_lineup_dat(M=8, dat, xname="x", yname="y")
lineup_dat = make_lineup_dat(M=8, dat, xname="x", yname="y",bootstrap=T,jitter=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.