get_xrange: Return x-range for a given group

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get_xrange.R

Description

Takes a data frame with groups and a continuous abscissa, then returns the abscissa range for a given group.

Usage

1
2
3
4
5
6
get_xrange(
  dat,
  x_name = maeve_options("x_name"),
  group_name = maeve_options("group_name"),
  reference_Dunnett = maeve_options("reference_Dunnett")
)

Arguments

dat

a data.frame including a numeric column and a factor column

x_name

character string with name of numeric column of interest

group_name

character string with name of factor column of interest

reference_Dunnett

character string with exact match to an element of grpnames. The exact match will be the reference group in Dunnett contrasts.

Value

a vector with two numbers giving the range of interest for dat[,x_name].

Author(s)

Bill Forrest forrest@gene.com

See Also

data.frame

Examples

1
2
 test_dat <- expand.grid( x = 0:3, group = c('group_1','group_2') )
 example_xrange <- maeve:::get_xrange( test_dat, 'x', 'group' )

wfforrest/maeve documentation built on Jan. 1, 2021, 12:47 p.m.