# Re: [MORPHMET] How to project shape difference onto different PC

```Dear James,

Thanks for the reply. Yes I have completed a PCA on a GM dataset with 11
landmarks, and you got it exactly right that I'm trying to decompose shape
differences onto individual PCs.  ```
```
The reason I was hesitating to do the vector projection is that I'm not
sure if PC scores on different PCs are directly comparable to each other.
For simplicity, let's say I'm only considering PC1 and PC2, which explains
80% of shape variation in total (60% + 20%). Group A has a mean PC1 score
of 0.5, and PC2 score of 0.1; where as Group B has a mean PC1 score of 0.4
and PC2 score of 0.3.  Then I'm looking at a 0.1 difference along PC1 and a
0.2 difference along PC2 between these two groups.

Would this mean they differ twice as much along PC2 than PC1, such that in
the 80% of shape variation explained by these two PCs, 1/3 is along PC1 and
2/3 is along PC2?

But considering that PC1 explains three times more variation than PC2 (60%
vs 20%), would this mean I should weigh the PC score difference (distance
along each PC)? i.e. although the absolute difference in mean PC1 score is
0.1, it should be weighed three times more than the difference along PC2 so
in the 80% of shape variation explained by these two PCs, 3/5 is along PC1
and 2/5 is along PC2?

On the other hand, I agree visualizing the shape difference along each PC
can be helpful, and I'm pretty sure the plotRefToTarget function from the R
package geomorph can achieve this.

Thanks again.
Best,

Yinan

On Friday, May 18, 2018 at 12:53:32 PM UTC-4, K. James Soda wrote:
>
> Dear Dr. Hu,
>
> Let me begin by restating how I understand the question: You have
> completed a PCA on a morphological data set in which there are two subsets
> of interest. Now you would like to decompose the difference between the two
> subsets into differences along individual PCs. Here is my two cents on the
> issue:
>
> I would say that the literal solution to this problem would probably be
> something along the lines of what you proposed. For simplicity, say that
> you summarized each subset using its mean position in the PC space. This
> would be expressed as a vector where each element is a position along a
> single PC. The difference between these two vectors would then be a
> decomposition of how far you would need to move along each PC axis to move
> from one mean to the other. You could then standardize the elements so that
> their absolute values sum to one. This would be an expression of what
> percentage of the distance is along each PC.
>
> What I perceive as the subtext of your question, though, is whether this
> sort of decomposition has a reasonable interpretation, and the answer to
> this question is somewhat trickier. Assuming this is a GM data set, the
> more relevant point might be how you convert the difference into
> visualizations. A nice feature of GM data is that each PC will correspond
> to a "type" of deformation. This feature can be used to decompose the
> difference between two shapes in a shape-PC space as well. For example,
> imagine you moved from one mean shape in the PC space to the other by only
> moving parallel to PC axes. If you are interested in two PCs, this could be
> accomplished in two ways. You could then visualize the shape at the points
> where you make a turn; that is, you would visualize how mean shape 1 would
> need to be deformed to have the same PC1 or PC2 score as mean shape 2 if
> all other PCs were held constant. The degree of deformation would then
> provide a qualitative measure of how radical each PC's contribution is to
> the shape difference. Of course, this is not a quantitative measure, as you
> requested, but I would argue it is a more helpful assessment b/c it
> directly corresponds to observable phenomena. How helpful, though, will
> depend on your research question.
>
> Hope something in there helps a little,
>
> James
>
> On Thu, May 17, 2018 at 10:15 AM, Yinan Hu <yinan...@gmail.com
> <javascript:>> wrote:
>
>> Dear colleagues,
>>
>> I'm trying to figure out how to break down shape differences onto
>> individual PC axes.  I have a morphospace where PC1 explains 60% of shape
>> variation and PC2 explains 20% of variation. Two subsets of samples of
>> particular interest do not differ much along PC1, but differs significantly
>> along PC2. How should I project the shape difference between these subsets
>> onto seperate PC axes, such that I can quantitatively show X% of shape
>> difference between them are along PC1 and Y% is along PC2?
>>
>> A simple vector projection (i.e. using the mean difference of PC1 score
>> and PC2 score) doesn't feel right to me as I don't think PC scores are
>> directly comparable between different PCs. Or am I wrong?
>> Any suggestions would be greatly appreciated.
>>
>> Many thanks for your time.
>>
>> --
>> MORPHMET may be accessed via its webpage at http://www.morphometrics.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "MORPHMET" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to morphmet+u...@morphometrics.org <javascript:>.
>>
>
>

--
MORPHMET may be accessed via its webpage at http://www.morphometrics.org
---
You received this message because you are subscribed to the Google Groups
"MORPHMET" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to morphmet+unsubscr...@morphometrics.org.
```