diff --git a/doc/source/kmeans.rst b/doc/source/kmeans.rst index d871849e..606ecf6b 100644 --- a/doc/source/kmeans.rst +++ b/doc/source/kmeans.rst @@ -129,4 +129,4 @@ Example with plot using Gadfly - plot(iris, x = "PetalLength", y = "PetalWidth", color = result.assignments, Geom.point) + plot(iris, x = "PetalLength", y = "PetalWidth", color = assignments(result), Geom.point)