jakegross808 / pacn-veg-package

all pacn veg code
Creative Commons Zero v1.0 Universal
1 stars 1 forks source link

Plot level cover change - what will this look like when there are more than 2 sample cycles? #30

Closed wright13 closed 2 years ago

wright13 commented 2 years ago

Will we always be comparing the first year to the last year? Or the last year to the year before?

jakegross808 commented 2 years ago

I have been thinking about this and I think we need to have both options. So if there were 5 cycles sampled I would want to be able to look at cycle 5 v 4 , and cycle 5 v 1. I've been working on a way to have a table with a column for each comparison - for example column names 3v2, 3v1, and 2v1 so you could easily switch the input to graph the different column (year span).

jakegross808 commented 2 years ago

Currently the UnderNativityCover() function which makes the table for the change graph uses a lag to calculate change from selected cycle to the previous cycle:

UnderNativityCover(combine_strata = TRUE, paired_change = TRUE, sample_frame = "Olaa")

jakegross808 commented 2 years ago

But I don't have it set up to calculate change between most recent cycle and first cycle yet.

wright13 commented 2 years ago

I can set that up

wright13 commented 2 years ago

For the moment, I've got it set up so that you can pass any two cycle numbers to UnderNativityCover and calculate change between the two. This should set us up to be able to modify it at some point to compare every cycle to all previous cycles. We should think through that though, because the number of columns will grow faster with each new cycle.