From 548c3621db41cdbe20b8f63cf937eca8bc1489b8 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 17 May 2018 00:37:55 -0700 Subject: [PATCH] Use the assignments function The field only works for kmeans so the example code doesn't generalize well. --- doc/source/kmeans.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)