Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Had some issues with factor plotting in ggPD_boot, plus y axis scale not responding to common.scale. 'Fixed' version attached #36

Open
dtickler-MF opened this issue Feb 24, 2023 · 0 comments

Comments

@dtickler-MF
Copy link

Hi there,

Had some issues plotting predictor-response plots with ggPD_boot in dismo. Appeared to be a problem whereby the code overwrote the plots created under is.factor == TRUE with the following lines for type.ci == "lines" or type.ci == "ribbon". Added an "else" between the two segments to avoid that. Also added na.rm = TRUE to the mean(), min() and max() commands that set the y axis limits when common.scales == T, as I was getting NAs. The issues may have been unique to my model (source file supplied as "model_outputs.R" in the zipfile in case you want to recreate the issues with the existing code) or I did something else stupid in setting up the model to plot, but the attached modified version of ggPD_boot (ggPD_boot_daveT) seems to work as expected. Would welcome any feedback!
ggPD_boot_daveT.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant