Skip to content

Commit 3d4ec8b

Browse files
Steelblue, darkorange consistency with prev chps
1 parent 610ae81 commit 3d4ec8b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

source/clustering.Rmd

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ hidden_print_cli <- function(x){
4444
# set the colors in the graphs,
4545
# some graphs with the code shown to students are hard coded
4646
cbbPalette <- c(brewer.pal(9, "Paired"))
47-
cbpalette <- c("darkorange3", "dodgerblue3", "goldenrod1")
47+
cbpalette <- c("darkorange", "steelblue", "goldenrod1")
4848
4949
theme_update(axis.title = element_text(size = 12)) # modify axis label size in plots
5050
```
@@ -258,7 +258,7 @@ ggplot(penguins_clustered, aes(y = bill_length_standardized,
258258
geom_point() +
259259
xlab("Flipper Length (standardized)") +
260260
ylab("Bill Length (standardized)") +
261-
scale_color_manual(values= c("darkorange3", "dodgerblue3", "goldenrod1"))
261+
scale_color_manual(values= c("darkorange", "steelblue", "goldenrod1"))
262262
```
263263

264264
What are the labels for these groups? Unfortunately, we don't have any. K-means,
@@ -318,7 +318,7 @@ base <- ggplot(penguins_clustered, aes(x = flipper_length_standardized, y = bill
318318
319319
base <- ggplot(clus1) +
320320
geom_point(aes(y = bill_length_standardized, x = flipper_length_standardized),
321-
col = "dodgerblue3") +
321+
col = "steelblue") +
322322
labs(x = "Flipper Length (standardized)", y = "Bill Length (standardized)") +
323323
xlim(c(
324324
min(clus1$flipper_length_standardized) - 0.25 *
@@ -338,7 +338,7 @@ base <- ggplot(clus1) +
338338
shape = 21,
339339
stroke = 1,
340340
color = "black",
341-
fill = "dodgerblue3")+
341+
fill = "steelblue")+
342342
theme(legend.position = "none")
343343
344344
base
@@ -380,12 +380,12 @@ base <- base +
380380
shape = 21,
381381
stroke = 1,
382382
color = "black",
383-
fill = "dodgerblue3")
383+
fill = "steelblue")
384384
385385
base <- base +
386386
geom_point(aes(y = bill_length_standardized,
387387
x = flipper_length_standardized),
388-
col = "dodgerblue3") +
388+
col = "steelblue") +
389389
labs(x = "Flipper Length (standardized)", y = "Bill Length (standardized)") +
390390
theme(legend.position = "none")
391391
@@ -440,17 +440,17 @@ all_clusters_base <- all_clusters_base +
440440
color = cluster)) +
441441
xlab("Flipper Length (standardized)") +
442442
ylab("Bill Length (standardized)") +
443-
scale_color_manual(values= c("darkorange3",
444-
"dodgerblue3",
443+
scale_color_manual(values= c("darkorange",
444+
"steelblue",
445445
"goldenrod1"))
446446
447447
all_clusters_base <- all_clusters_base +
448448
geom_point(aes(y = cluster_centers$y[1],
449449
x = cluster_centers$x[1]),
450-
color = "black", fill = "darkorange3", size = 4, stroke = 1, shape = 21) +
450+
color = "black", fill = "darkorange", size = 4, stroke = 1, shape = 21) +
451451
geom_point(aes(y = cluster_centers$y[2],
452452
x = cluster_centers$x[2]),
453-
color = "black", fill = "dodgerblue3", size = 4, stroke = 1, shape = 21) +
453+
color = "black", fill = "steelblue", size = 4, stroke = 1, shape = 21) +
454454
geom_point(aes(y = cluster_centers$y[3],
455455
x = cluster_centers$x[3]),
456456
color = "black", fill = "goldenrod1", size = 4, stroke = 1, shape = 21)
@@ -1015,8 +1015,8 @@ cluster_plot <- ggplot(clustered_data,
10151015
labs(x = "Flipper Length",
10161016
y = "Bill Length",
10171017
color = "Cluster") +
1018-
scale_color_manual(values = c("dodgerblue3",
1019-
"darkorange3",
1018+
scale_color_manual(values = c("steelblue",
1019+
"darkorange",
10201020
"goldenrod1")) +
10211021
theme(text = element_text(size = 12))
10221022

0 commit comments

Comments
 (0)