plot_full_diet_matrix: plot the full diet matrix

View source: R/plot_full_diet_matrix.R

plot_full_diet_matrixR Documentation

plot the full diet matrix

Description

Plot the full diet matrix. Each line corresponds to a predator and its column to the prey. The color of the circle corresponds to the quantile 50 to the diet of the predator. The radius of the larger circle (respectively smaller circle) corresponds to the quantile 97.5 to the diet of the predator

Usage

plot_full_diet_matrix(myfit, mydata)

Arguments

myfit

a fit as returned by fit_escroc

mydata

a list as returned by prepare_data

Value

nothing

Examples

#importing data
data(signature_data)
data(prior_diet_matrix)
data(LOQ)
data(prior_signature_data)
prior_delta <- data.frame(tracer=c("X15N","X13C"),mean=c(3,0),sd=c(1,1))

#check that everything is ok
mydata <- prepare_data(prior_diet_matrix,signature_data,
LOQ,prior_signature_data,prior_delta)

#build the model
mymodel <- building_model(mydata)

#fit the model
myresults <- fit_escroc(mydata, mymodel)

#plot the diet matrix
plot_full_diet_matrix(myresults,mydata)

Irstea/escroc documentation built on June 18, 2022, 11:22 p.m.