1
我正在用python(matplotlib)绘制下图。如何在python中绘制方格网格(ggplot in R)
我可以通过下面的代码来做到这一点的R,
ggplot(delay.with.weather,
aes(x=pressure, y=dep.delay), na.rm = TRUE) + geom_point(na.rm = TRUE) +
facet_grid(season ~ ., scales="free") + stat_smooth(method=lm, na.rm = TRUE)
我艰难如下,
plt.scatter(flights_combined.pressure,flights_combined.dep_delay)
plt.show()
我不能按季节柱。也无法绘制回归线。有人能帮我做这些吗?
[python-ggplot](http://ggplot.yhathq.com/)呢? –
我正在运行anaconda ipython。无法安装软件包。 – haimen
你使用熊猫数据框吗? – kazemakase