Define what direction to look in

look_in(.df, direction = "xyz", every = 1)

Arguments

.df

Data frame with x, y, z and value or component columns, typically output from look_at().

direction

Direction to consider. Either 1D ("x", "y", "z"), 2D ("xy", "xz", "yz") or 3D ("xyz").

every

Value indicating how many voxels to consider, e.g. one of two (1/2), one every three (1/3), etc. Defaults to every voxel (1/1). This can be a vector (row, column, layer) to thin the different dimensions differently. Alternatively it can be a list of two vectors, where the first one is used for the category of interest (of_category in look_at()) and the second one is for the neighbour category (in_relation_to in look_at(), or again of_category for a self-query).

Value

Data frame (tibble) with x, y, and/or z, and value or component columns.