How to save plot generated by pairs.panels from R's psych library in Jupyter

我怕爱的太早我们不能终老 提交于 2020-01-06 19:31:42

问题


I'm using R's psych library and I'm plotting correlation pairs on a Jupyter notebook using its pairs.panels function.

I tried using ggplot's ggsave function to save the plot but it wouldn't work. The error says:

Error in ggsave(filename = "correlation-pairs.png", : plot should be a ggplot2 plot

Is there a way to save the output of pairs.panels?

来源:https://stackoverflow.com/questions/33819676/how-to-save-plot-generated-by-pairs-panels-from-rs-psych-library-in-jupyter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!