Unique peaks check
Erin-Rooney opened this issue · 3 comments
Here is the fairbanks code for the unique peaks. Can you double check it for correctness?
Thanks!!
Y1_fairbanks/code/fticr-2-nosc.R
Lines 40 to 52 in 0917f5a
The problem was here:
Y1_fairbanks/code/fticr-2-nosc.R
Lines 20 to 22 in 0917f5a
fticr_data_water_summarized
represents peaks present within each "treatment", not individual samples. So you don't want to include ID
in your grouping.
fticr_data_water_summarized =
fticr_water %>%
distinct(slopepos, cover_type, plot, formula) %>% mutate(presence = 1)
I tried a Van Krevelen to confirm, and I now get unique peaks across all slope positions.
I see some redundancies in your processing code, I'm going to run through everything and add some notes here.
Also, you jump straight into NOSC for your analysis. I would recommend starting out larger scale for an exploratory analysis first. Do Van Krevelens, PCA, etc. before diving into NOSC for unique peaks. You may lose important pieces of the story if you skip the exploratory data analysis.
I actually did van krevelen's first but forgot to put that code.
Y1_fairbanks/code/fticr-4-vankrevelin.R
Lines 185 to 211 in 0917f5a
I think it's the same issue there:
Y1_fairbanks/code/fticr-4-vankrevelin.R
Lines 21 to 23 in 0917f5a
I think I understand the corrections but it would still be good to go over them tomorrow at our meeting.