mixnorm | R Documentation |
Simulates a normal density function from an FLQuant
mixnorm(n, mn, sd, bin, left = T)
mn |
an |
sd |
an |
an FLPar
with expected probability for lengths-at-age
## Not run:
mn=FLQuant( 1:5, dimnames=list(age=1:5,year=1991:2000,unit=1:2))
sd=FLQuant((1:5)/5,dimnames=list(age=1:5,year=1991:2000))
md=mixnorm(mn,sd,(1:20)/4)
ggplot(as.data.frame(md))+
geom_line(aes(len,data,group=age))+
facet_wrap(year~unit)
ggplot(as.data.frame(apply(md,1,sum)))+
geom_line(aes(as.numeric(as.character(params)),data))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.