James-Thorson-NOAA / VAST

Spatio-temporal analysis of univariate or multivariate data, e.g., standardizing data for multiple species or stages
http://www.FishStats.org
GNU General Public License v3.0
124 stars 53 forks source link

Extracting values from VAST outputs #208

Open HelloMckenna opened 4 years ago

HelloMckenna commented 4 years ago

Hello James,

This may not count as an issue per say, I'm just not sure where to log such an enquiry as I'm unable to find it on the wiki.

I'm comparing multiple indicators across years and was wondering if there is a simple way to the extract values used to generate each plot? The graphics produced are fantastic and a lot of thought has been put on to building the functions generate them. Its just that I wish to use the values these outside of VAST.

I'm using the single species as an example script to carry out the analysis on my own data. I understand that the values are in "Report" and "TmbData". The plot functions then take the values within these lists and process them through the relevant equations before generating the graphics and saving them to the output folder.

Is there a simple way of generating a table of indicator parameters by year? Alternatively is the only way to produce this to work through plot functions and extract the values for each year?

Much appreciated,

Ryan

James-Thorson-NOAA commented 4 years ago

Thanks for asking on the issue tracker, I agree this is a good place.

Each plotting function like 'plot_index(.)' has an invisible return with the values used to plot. I think the wrapper function 'plot(.)' will also pass those returns through.

Could you please try assigning output from 'plot' and check the contents, and then respond and close the issue if that solves it for you?