Learn R Programming

webmorphR (version 0.1.1)

centroid: Get center coordinates

Description

Get center coordinates

Usage

centroid(stimuli, points = NULL)

Arguments

stimuli

list of stimuli

points

which points to include (0-based); if NULL, all points will be used

Value

named matrix of centroid x and y coordinates

See Also

Template functions auto_delin(), average_tem(), change_lines(), delin(), draw_tem(), features(), get_point(), remove_tem(), require_tems(), same_tems(), squash_tem(), subset_tem(), tem_def(), viz_tem_def()

Examples

Run this code
# NOT RUN {
demo_stim() |> centroid()

# get the centre of the eye points
demo_stim() |> centroid(0:1)
# }

Run the code above in your browser using DataLab