You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: