Closed gijsbertwerner closed 7 years ago
Some issues still to fix that I noted during help-function testing.
"sensiTree_Clade"
and "sensiIntra_Clade"
I get the error message Error in multiplot(g.out, g2, cols = 2) : could not find function "multiplot"
. Could be some ggplot version thing? --> See Gustavo comment, check if still an issue after rebuilding."sensiTree_Clade"
and "sensiIntra_Clade"
. Hey @gijsbertwerner, that is very nice =) thanks!
regarding the "multiplot", this is a function I included on the script: utils_plot.R to gather multiple ggplots in one single plot. Because this functions is not exported in the package, some time if you run the function code "by hand" instead of building the package it wont find "multiplot" because this function only works within the package. It is a bit confusing sorry. Try to make a change and rebuilt the package, if the problem does not go away let me know I will try to find out. Maybe you can report here any other problem you find, I think this workflow is good to catch minor issues and track then down.
Hey @paternogbc . Great this makes sense! I had something similar with summary(x) fort both both "sensiTree_Clade"
and "sensiIntra_Clade"
. Manually running the internal functions in utils_plot.R and in summary_methods.R solves this and then everything works great. So I think you are right that it will be some building thing. Let's carefully check that again at the end, I suppose most practical?
Hey @gijsbertwerner great! Yep we can check, but if the re-build fixed, it is all good. Is just that you mask the original function when you run the code by hand. Then, the new function is set at the global environment. But in th global environment, there is no multiplot, because this function was not exported from the package =)
Are the plotting issues only linked to the multiplot or is there something else?
Hey @caterinap ,
could you check this example with intra_phylm
, I think something went wrong with the plot.
# Load data:
data(alien)
# run PGLS accounting for intraspecific variation:
intra <- intra_phylm(gestaLen ~ adultMass, y.transf = log, x.transf = log,
phy = alien$phy[[1]], data = alien$data, Vy = "SD_gesta", n.intra = 30)
# To check summary results:
summary(intra)
# Visual diagnostics
sensi_plot(intra)
The regression line looks wrong.
Was linked to a mistake in ggplot geom_abline
(slope was called esimate), should work now! Thanks for spotting it :) commit aaa4343
I also fixed some minor bugs caused by progressbar in commit 2ebb16b
@caterinap perfect!
Have created a branch help_check to do this. Just for our own recored & peace of mind, a list of the ones that I have already checked (updating this all the time I do one):