Description Usage Arguments Value Examples
Function projects data onto vector from anchor one (score of 0) to anchor two (score of 1). For all three arguments, input must be two-dimensional data frame or matrix with rows = specimens, and columns = PC scores.
1 |
data |
PC scores of face(s) for which vector scores are to be calculated |
anchor1 |
PC scores of face(s) which will constitute lower anchor point |
anchor2 |
PC scores of face(s) which will constitute upper anchor point |
Returns tibble with columns "id" and "VS". If data contained rownames, these will be saved as ids.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # CALCULATE FEMALE-MALE VECTOR SCORES
data("LondonSet_scores")
data("LondonSet_info")
fem <- LondonSet_scores %>%
dplyr::filter(row.names(LondonSet_scores) %in%
LondonSet_info$face_id[which(LondonSet_info$face_sex == "female")])
mal <- LondonSet_scores %>%
dplyr::filter(row.names(LondonSet_scores) %in%
LondonSet_info$face_id[which(LondonSet_info$face_sex == "male")])
calc_vs(LondonSet_scores, fem, mal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.