densify {metamer} | R Documentation |
Increase resolution of data
Description
Interpolates between the output of draw_data()
and increases the point
density of each stroke.Useful for avoiding sparse targets that result in
clumping of points when metamerizing. It only has an effect on strokes (made
by double clicking).
Usage
densify(data, res = 2)
Arguments
data |
A |
res |
A numeric indicating the multiplicative resolution (i.e. 2 = double resolution). |
Value
A data.frame
with the x
and y
values of your data and a .group
column
that identifies each stroke.
See Also
Other helper functions:
delayed_with()
,
draw_data()
,
mean_dist_to_sf()
,
mean_dist_to()
,
mean_self_proximity()
,
moments_n()
,
truncate_to()
[Package metamer version 0.3.0 Index]