round_xy: Return a dataframe binned into 2-d bins by some x and y.

Description Usage Arguments Value

View source: R/pvdiv_gwas.R

Description

Given a dataframe of x and y values (with some optional confidence intervals surrounding the y values), return only the unique values of x and y in some set of 2-d bins.

Usage

1
round_xy(x, y, cl = NA, cu = NA, roundby = 0.001)

Arguments

x

Numeric vector. The first vector for binning.

y

Numeric vector. the second vector for binning

cl

Numeric vector. Optional confidence interval for the y vector, lower bound.

cu

Numeric vector. Optional confidence interval for the y vector, upper bound.

roundby

Numeric. The amount to round the x and y vectors by for 2d binning.

Value

A dataframe containing the 2-d binned values for x and y, and their confidence intervals.


Alice-MacQueen/switchgrassGWAS documentation built on Jan. 23, 2022, 7:55 p.m.