You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clustering.Rmd
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -469,7 +469,8 @@ for (i in 1:4) {
469
469
stroke = 1,
470
470
color = "black",
471
471
fill = cbpalette) +
472
-
annotate("text", x = -0.5, y = 1.5, label = paste0("Iteration ", i))
472
+
annotate("text", x = -0.5, y = 1.5, label = paste0("Iteration ", i), size = 5)+
473
+
theme(text = element_text(size = 14))
473
474
474
475
if (i == 1 | i == 2) {
475
476
plt_ctr <- plt_ctr +
@@ -502,7 +503,8 @@ for (i in 1:4) {
502
503
stroke = 1,
503
504
color = "black",
504
505
fill = cbpalette) +
505
-
annotate("text", x = -0.5, y = 1.5, label = paste0("Iteration ", i))
506
+
annotate("text", x = -0.5, y = 1.5, label = paste0("Iteration ", i), size = 5)+
507
+
theme(text = element_text(size = 14))
506
508
507
509
if (i == 1 | i ==2) {
508
510
plt_lbl <- plt_lbl +
@@ -613,7 +615,7 @@ Figure \@ref(fig:10-toy-kmeans-bad-iter) shows what the iterations of K-means wo
613
615
614
616
(ref:10-toy-kmeans-bad-iter) First five iterations of K-means clustering on the `penguin_data` example data set with a poor random initialization. Each pair of plots corresponds to an iteration. Within the pair, the first plot depicts the center update, and the second plot depicts the reassignment of data to clusters. Cluster centers are indicated by larger points that are outlined in black.
ggplot() + theme_void(), ggplot() + theme_void(), ggplot() + theme_void(), ggplot() + theme_void(), # adding third row of empty plots to change space between third and fourth row
0 commit comments