3 ms·
The Wikipedia example (Chernoff faces for lawyers' ratings of twelve judges) would make a whole lot more sense if they mentioned what properties of the judges w
by mysterypie 9y ago
The Wikipedia example (Chernoff faces for lawyers' ratings of twelve judges) would make a whole lot more sense if they mentioned what properties of the judges were being mapped to which facial features.
Here are the Lawyers' Ratings of State Judges in the US Superior Court:
https://www.rdocumentation.org/packages/datasets/versions/3.4.3/topics/USJudgeRatings https://www.rdocumentation.org/packages/datasets/versions/3....
And here is the R code:
library(TeachingDemos)
svg("Chernoff faces for evaluations of US judges.svg", height=6, width=8)
faces2(USJudgeRatings[1:12,c(2:11,2:9)]/5-1, scale="none")
dev.off()
Could someone who knows R and where to find the faces2() function give us a legend (i.e., a table of judge's property to facial feature)? Maybe we can add that into Wikipedia afterward too.
- deleted 9y ago[deleted]
- klmr 9y agoThanks for finding this, the lack of explanation in the Wikipedia article was driving me crazy. Here’s what the `TeachingDemos::faces2` documentation says about the feature mapping: > The features are: 1 Width of center 2 Top vs. Bottom width (height of split) 3 Height of Face 4 Width of top half of face 5 Width of bottom half of face 6 Length of Nose 7 Height of Mouth 8 Curvature of Mouth (abs < 9) 9 Width of Mouth 10 Height of Eyes 11 Distance between Eyes (.5-.9) 12 Angle of Eyes/Eyebrows 13 Circle/Ellipse of Eyes 14 Size of Eyes 15 Position Left/Right of Eyeballs/Eyebrows 16 Height of Eyebrows 17 Angle of Eyebrows 18 Width of Eyebrows So there are 18 visually distinguishable features, and the code maps the columns 2–9 redundantly to two features each, and columns 10–11 to one feature each. I don’t understand how the scaling was chosen — the function requires the values to be in the interval [0, 1] but since the original scores appear to be in [0, 10], a more natural transformation would be to just divide by 10 instead of `x / 5 - 1`. Obviously these two transformations result in markedly different faces. If I find time later I’ll upload an updated plot that includes a legend. Unfortunately that’s not easy since the `faces2` function overrides R’s plot layout so there’s no space to fit the legend.
- klmr 9y agoI’ve found some time to add the mapping as a table to the Wikimedia image [1]. Not sure how to best refer to this inside the article. Having it inside the image itself proved problematic (the resulting plot became too big to be readable inside the article) so I ended up not doing that in the end. [1] https://commons.wikimedia.org/wiki/File:Chernoff_faces_for_evaluations_of_US_judges.svg https://commons.wikimedia.org/wiki/File:Chernoff_faces_for_e...