rpy2を使用してggplotで次の簡単なプロットを作成しています:
from rpy2.robjects.lib import ggplot2
from rpy2.robjects import r, Formula
# R iris dataset
iris = r('iris')
p = ggplot2.ggplot(iris) + \
ggplot2.geom_point(ggplot2.aes_string(x="Sepal.Length", y="Sepal.Width", colour="Sepal.Width"), fill="white") + \
ggplot2.facet_wrap(Formula('~ Species'), ncol=2, nrow = 2)
p.plot()
一部を除いてすべて機能しfill="white"
ます。すべてのポイントの塗りつぶしを白にし、色 (つまり、ポイントの境界線の色) をSepal.Width
. これはどのように行うことができますか?ありがとう。