Creates data with identical statistics (metamers) using an iterative algorithm proposed by Matejka & Fitzmaurice (2017) <DOI:10.1145/3025453.3025912>.
Create metamers with the metamerize()
function.
Some helper functions included:
draw_data()
for drawing 2D datasets by hand and densify()
for increasing
the point density of those drawings.
delayed_with()
for defining statistics to preserve.
moments_n()
for preserving moments of order n.
mean_dist_to()
for minimizing the mean distance to a known target dataset.
trim()
for keeping only some metamers.
The as.data.frame()
method included will turn a metamer_list
into a tidy
data.frame.
Inspired by Matejka & Fitzmaurice (2017) awesome paper.
Matejka, J., & Fitzmaurice, G. (2017). Same Stats, Different Graphs. Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems - CHI <U+2019>17, 1290<U+2013>1294. https://doi.org/10.1145/3025453.3025912
Useful links: