Skip to contents

For each group, computes the mean x/y position and a rectangular 95% confidence interval using t(df = n-1, 0.975) * SE on each axis independently. This matches the CI convention used by rENA / Web ENA.

Usage

group_summary(pts, x_col, y_col, group_col)

Arguments

pts

A data.frame with at least the columns named by x_col, y_col, and group_col.

x_col

Name of the x-coordinate column.

y_col

Name of the y-coordinate column.

group_col

Name of the grouping column.

Value

A data.frame with columns group, x, y, x.low, x.high, y.low, y.high.