[FLR-list] Plotting FLStocks with ggplot2 vs lattice

Clara Ulrich clu at aqua.dtu.dk
Tue Sep 24 02:46:29 CEST 2013


Thanks for answers. 

I haven't tried further so far, being at ICES ASC right now, but I will get back to this afterwards. I am indeed getting quite enthusiastic about ggplot syntax compared to lattice so surely I will find out!

Bye - from Iceland
Clara

-----Original Message-----
From: flr-list-bounces at r-forge.wu-wien.ac.at [mailto:flr-list-bounces at r-forge.wu-wien.ac.at] On Behalf Of Iago MOSQUEIRA (JRC)
Sent: 23 September 2013 22:55
To: flr-list at flr-project.org
Subject: Re: [FLR-list] Plotting FLStocks with ggplot2 vs lattice

On 09/19/2013 03:00 PM, Clara Ulrich wrote:
> 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
> _______________________________________________
> flr-list mailing list
> flr-list at flr-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
> 

Hi,

BTW, it is only after loading FLBRP, which depends on ggplotFL, or loading ggplotFL directly, that you get this change.

Let us know how iut goes with ggplotFL though.


Iago


--
Dr Iago Mosqueira

European Commission - Joint Research Center Institute for the Protection and Security of the Citizen (IPSC) Maritime Affairs Unit FISHREG - Scientific Support to Fisheries TP 051, Via Enrico Fermi 2749
I-21027 Ispra (VA), Italy

Office : +39 0332 785413
Fax: +39 0332 789658

iago.mosqueira at jrc.ec.europa.eu

http://fishreg.jrc.ec.europa.eu/home

_______________________________________________
flr-list mailing list
flr-list at flr-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list


More information about the flr-list mailing list