[FLR-list] Plotting FLStocks with ggplot2 vs lattice

Clara Ulrich clu at aqua.dtu.dk
Thu Sep 19 15:00:18 CEST 2013


Hi all, 

The new FLR versions are calling ggplot2 as the default package for plotting objects, which is fine so far, plots are nice. 

However, this is not true for plotting several stocks in a FLStocks objects, for example typically for an MSE outcome with an operating model that has confidence intervals, and if you want to show some spaguettis for the first iterations. The default call to plot doesn't make it nice at all compared to how the default plot made it to lattice. 

I usually called for example:

plot(FLStocks(iter(OM,1),iter(OM,2),iter(OM,3),MP,OM)),
                  col=c("#808080" ,"#AAAAAA", "#D5D5D5","black","red"))

is there any simple way to call back to lattice for doing such a graph, or to tweak ggplot methods so that the same information is displayed?

Thanks in advance,
Clara


More information about the flr-list mailing list