Closed renhamm closed 10 months ago
Hm that's a new one. I have three guesses:
1) it's a path problem. are you sure you're running this code in the directory you're looking for your output in?
2) you're somehow writing over your output files. is it possible that you're running the conStruct example analyses after running your analysis?
3) you haven't loaded the saved data block .Robj file. if the conStruct
library is loaded, the "toy" data block will be accessible as data.block
(even though it won't show up in your working memory in the output of, e.g., ls()
). In order to see your data block, you have to load the .Robj file (via, e.g., load("myPath/renhammExample_data.block.Robj")
).
If it's not any of those, please send a MWE and I'll see if I can replicate.
Thanks! Since I ran so many iterations across various K values across multiple datasets, my data.blocks got scattered. Directly loading the .Robj file fixed it (option 3)!
After running my spatial model (see code below), the resulting graphs and data are correct, but when I try to remake the structure plots ordered by latitude, the data.block consists of only what I can assume to be generic toy data form the general conStruct package. Is my run's data.block titled something else. How can I access the data.blovk for my individual runs?
Here is my run code: spatial.HF.2 <- conStruct(spatial = TRUE, K = 2, freqs = AFdata, geoDist = GeoDist, coords = LonLat_sorted, prefix = "spK2-HF", n.chains = 1, n.iter = 1000, make.figs = TRUE, save.files = TRUE)
This is what it looks like when I access data.block$coords: