James-Thorson-NOAA / FishStatsUtils

Shared resources for spatio-temporal models
GNU General Public License v3.0
10 stars 16 forks source link

Problems to plot the legend with plot_results/plot maps #15

Open aastarloa opened 5 years ago

aastarloa commented 5 years ago

Hi there, I would like to add a legend to the density map obtained via VAST but I am getting an error. This is what I have done:

MapDetails_List = make_map_info( "Region"=settings$Region, "spatial_list"=fit1$spatial_list, "Extrapolation_List"=fit1$extrapolation_list) MapDetails<-MapDetails_List[["MappingDetails"]]

plot_results(settings=settings, fit=fit1, plot_maps(Legend=MapDetails_List[["Legend"]], Report=fit1$Report, PlotDF=MapDetails_List[["PlotDF"]], MappingDetails = MapDetails, Xlim=MapDetails_List[["Xlim"]], Ylim = MapDetails_List[["Ylim"]]))

And this is the error:

Making plot of densities

Error in plot_maps(plot_set = plot_set, MappingDetails = map_list[["MappingDetails"]], : object 'Array_xct' not found

Any suggestions? Thank you in advance

aastarloa commented 5 years ago

Well, it gave me error but still I can get the legend I was looking for, so by now works for me.