MixSIAR icon indicating copy to clipboard operation
MixSIAR copied to clipboard

Is there a way to remove the legend from the posterior density plots?

Open zenkley opened this issue 1 year ago • 1 comments

I have been trying to find a work around for this for the last few hours, in my study I have 3 sites; upper, middle, estuary and 3 tissues; liver, mucus, and liver. These need to be presented in a 3x3 graph for each season, so I cannot have the legend in each plot.

I found a comment from an earlier post [/issues/222] with Brian saying:

"For the posterior density plots, no, there isn't a similar function argument to return the ggplot2 object. It's easier to return the object for the isospace plot because there's (typically) only one, but there are several posterior density plots. Rather than have the functions return the plot object, you can download or fork the repository and modify the plotting code so it works for you. The R file is output_JAGS.R."

I have downloaded the repository, and modified the .R file hopefully to what I think is correct. Now, how do I run this? I use R studio. Am I meant to put the output_JAGS.R file somewhere? How do I get this to run within the package? the mixSIAR package has .rdb files?

Any help would be appreciated, thanks heaps.

zenkley avatar Jun 20 '23 03:06 zenkley

@brianstock

zenkley avatar Jun 21 '23 21:06 zenkley