findSortedIndTbl: Sort x- and y-columns by size of response for an individual...

View source: R/sortPW.R

findSortedIndTblR Documentation

Sort x- and y-columns by size of response for an individual facet.

Description

This assumed that all the data is from an individual facet.

Usage

findSortedIndTbl(data, plotTbl, calcStat)

Arguments

data

dataframe. Has columns group, resp and facet. The column 'group' specifies individual group, 'resp' response and 'facet' overall facet.

plotTbl

dataframe. Has columns .id, x, y and origStat. May have other columns. The column '.id' specifies overall facet, 'x' and 'y' the specific groups compared in a row, and 'origStat' how much larger the variable level in 'y' is than the variable level in 'x' (at least for ggbootPW; for other functions it could be the other way around the code would run fine).

Value

Dataframe with columns along x- and y-axes changed appropriately.


MiguelRodo/ggboot documentation built on Nov. 9, 2023, 5:45 p.m.