[FLR-list] FLBRP ( )
Luis Ridao
luridao at gmail.com
Thu Mar 15 17:01:00 CET 2012
FLR-help,
I have a simple question regarding the common MSY plot. after running
the simulations and getting
the results in an object of class "FLBRP"
> class(cod.fwd.brp)
[1] "FLBRP"
attr(,"package")
[1] "FLBRP"
> slotNames(cod.fwd.brp)
[1] "model" "params" "refpts" "fbar"
[5] "fbar.obs" "landings.obs" "discards.obs" "rec.obs"
[9] "ssb.obs" "stock.obs" "profit.obs" "landings.sel"
[13] "discards.sel" "bycatch.harvest" "stock.wt" "landings.wt"
[17] "discards.wt" "bycatch.wt" "m" "mat"
[21] "harvest.spwn" "m.spwn" "availability" "price"
[25] "vcost" "fcost" "name" "desc"
[29] "range"
i was wondering how can i generate the typical yield-per-recruit graph (yield on
y-axis and f on x-axis) from this object. is there any plot method for this?
Just like when running this on a stock object (without iterations/simulations):
codBrp <- FLBRP(stock,sr=codSR)
codBrp <- brp(codBrp)
plot(codBrp,obs=TRUE)
I try :
plot(cod.fwd.brp)
plot(refpts(cod.fwd.brp))
but none of them work ...
thanks in advance,
Luis
On Thu, Mar 15, 2012 at 2:55 PM, Luis Ridao Cruz <Luisr at hav.fo> wrote:
>
>
> ---------- Forwarded message ----------
> From: Luis Ridao <luridao at gmail.com>
> To: flr-list at flr-project.org
> Cc:
> Date: Thu, 15 Mar 2012 14:45:18 +0000
> Subject: Re: [FLR-list] FLBRP
> thanks Iago
>
> best,
> Luis
>
> On Thu, Mar 15, 2012 at 2:08 PM, Iago Mosqueira
> <iago.mosqueira-sanchez at jrc.ec.europa.eu> wrote:
>> Hi,
>>
>>
>> Thanks for this. I have now fixed this in SVN. The Rdevel repository does
>> not contain FLBRP, as the methods and classes there are now defined in
>> FLAdvice. So try
>>
>> install.packages('FLAdvice', repos="http://flr-project.org/Rdevel")
>>
>> or update your copy of SVN and try FLBRP from there
>>
>> Cheers,
>>
>>
>> Iago
>>
>>
>> On 03/15/2012 02:28 PM, Luis Ridao wrote:
>>>
>>> FLR-help,
>>>
>>> Package FLBRP cannot be installed via:
>>>
>>> install.packages(repos="http://flr-project.org/Rdevel")
>>>
>>> I tried it to installed from source and failed:
>>>
>>>> R CMD check FLBRP
>>>
>>> * using log directory
>>> ‘/home/luridao/Documents/D/R_programs/Packages/FLR/FLBRP.Rcheck’
>>> * using R version 2.14.2 (2012-02-29)
>>> * using platform: i486-pc-linux-gnu (32-bit)
>>> * using session charset: UTF-8
>>> * checking for file ‘FLBRP/DESCRIPTION’ ... OK
>>> * this is package ‘FLBRP’ version ‘2.00’
>>> * checking package namespace information ... OK
>>> * checking package dependencies ... OK
>>> * checking if this is a source package ... OK
>>> * checking if there is a namespace ... OK
>>> * checking for executable files ... OK
>>> * checking whether package ‘FLBRP’ can be installed ... ERROR
>>> Installation failed.
>>>
>>> Running on a linux machine (ubuntu 10.04.04) and R version R.2.14.2
>>>
>>> There is no way around this?
>>>
>>> Thanks in advance
>>> _______________________________________________
>>> flr-list mailing list
>>> flr-list at flr-project.org
>>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>>
>>
>>
>> --
>> 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
> _______________________________________________
> 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