0
나는 RPY2를 사용 ggplot와 함께 다음과 같은 간단한 줄거리를 만들고있어 다음 fill="white"
부분을 제외하고Python에서 rpy2의 ggplot에 geom_point fill을 설정하는 방법은 무엇입니까?
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()
그것은 모든 작동합니다. Sepal.Width
으로 설정할 색 (즉, 경계선 색)을 채우는 동안 채우기가 모든 점에서 흰색이되고 싶습니다. 어떻게 할 수 있습니까? 감사.
을, 그것은 내가 믿는 것과 같은 효과가있을 것인가? – user248237dfsf