Difference between revisions of "POPs in Baltic herring"

From Testiwiki
Jump to: navigation, search
m (Rationale: updated, plots TEQ figure)
m (Rationale: save objects added, plot moved to answer)
Line 12: Line 12:
 
POP concentrations in Baltic sea fish have been measured from samples collected in [[EU-kalat]] project.
 
POP concentrations in Baltic sea fish have been measured from samples collected in [[EU-kalat]] project.
  
<rcode graphics=1>
+
<rcode name="pop_bayes" label="Calculate (for developers only)" graphics=1 store=1>
 +
## This code is ???/pop_bayes on page [[POPs_in_Baltic_herring]]
 +
 
 
library(OpasnetUtils)
 
library(OpasnetUtils)
 
library(ggplot2)
 
library(ggplot2)
Line 59: Line 61:
 
#update(jags, 1000)
 
#update(jags, 1000)
 
out <- coda.samples(jags, c('tau1', 'muOfCompound'), 500) # Stores a posterior sample
 
out <- coda.samples(jags, c('tau1', 'muOfCompound'), 500) # Stores a posterior sample
#plot(out)
+
plot(out)
  
 
Meanlogpost = c()
 
Meanlogpost = c()
Line 84: Line 86:
 
   )
 
   )
  
#oprint(resultsall)
+
oprint(resultsall)
  
 
tef <- Ovariable("tef", ddata = "Op_en4017", subset = "TEF values")
 
tef <- Ovariable("tef", ddata = "Op_en4017", subset = "TEF values")
Line 98: Line 100:
 
teqpart <- teqpart[teqpart$variable == "Meanpost", ]
 
teqpart <- teqpart[teqpart$variable == "Meanpost", ]
  
ggplot(teqpart, aes(x = Congener, y = Result, fill = Congener)) + geom_bar(stat = "identity") +
+
objects.store(resultsall, teqpart)
  labs(x = "Congener", y = "TEQ (pg/g fat)") + coord_flip()
+
cat("resultsall and teqpart stored for later use:\n", paste(ls(), collapse = ", "), "\n")
  
 
</rcode>
 
</rcode>

Revision as of 10:21, 16 June 2016



Question

What are the concentrations of persistent organic pollutants (POPs) in Baltic sea fish.

Answer

Rationale

POP concentrations in Baltic sea fish have been measured from samples collected in EU-kalat project.

+ Show code

See also

References