Open cgoetsch opened 2 years ago
I've been messing around with Hmsc lately and tweaked the script a bit. Now you can return a ggplot of Beta, Gamma, or Omega posterior estimates, or if you prefer, just get a matrix of the variables to plot however you wish. There's definitely more to improve, but thought I'd share this here to save someone else the hassle!
Can't guarantee is bug free but has been working for me recently.
(https://gist.github.com/dansmi-hub/96fce0f52d380a70e70c63c2afc1b399)
Hope it's helpful!
Hi all,
I wrote a some code converting the plotBeta function from the Hmsc package to make an equivalent plot with ggplot2. I know that previously someone had posted about the difficulty of adjusting the plot parameters for plotBeta (see issue #64). Since I managed to get this working in ggplot2, I wanted to make the code available for the HMSC community to use. I hope it is alright posting it here, even though, strictly speaking, this is not an issue.
Enjoy! Chandra Goetsch