@@ -44,7 +44,7 @@ hidden_print_cli <- function(x){
44
44
# set the colors in the graphs,
45
45
# some graphs with the code shown to students are hard coded
46
46
cbbPalette <- c(brewer.pal(9, "Paired"))
47
- cbpalette <- c("darkorange3 ", "dodgerblue3 ", "goldenrod1")
47
+ cbpalette <- c("darkorange ", "steelblue ", "goldenrod1")
48
48
49
49
theme_update(axis.title = element_text(size = 12)) # modify axis label size in plots
50
50
```
@@ -258,7 +258,7 @@ ggplot(penguins_clustered, aes(y = bill_length_standardized,
258
258
geom_point() +
259
259
xlab("Flipper Length (standardized)") +
260
260
ylab("Bill Length (standardized)") +
261
- scale_color_manual(values= c("darkorange3 ", "dodgerblue3 ", "goldenrod1"))
261
+ scale_color_manual(values= c("darkorange ", "steelblue ", "goldenrod1"))
262
262
```
263
263
264
264
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
318
318
319
319
base <- ggplot(clus1) +
320
320
geom_point(aes(y = bill_length_standardized, x = flipper_length_standardized),
321
- col = "dodgerblue3 ") +
321
+ col = "steelblue ") +
322
322
labs(x = "Flipper Length (standardized)", y = "Bill Length (standardized)") +
323
323
xlim(c(
324
324
min(clus1$flipper_length_standardized) - 0.25 *
@@ -338,7 +338,7 @@ base <- ggplot(clus1) +
338
338
shape = 21,
339
339
stroke = 1,
340
340
color = "black",
341
- fill = "dodgerblue3 ")+
341
+ fill = "steelblue ")+
342
342
theme(legend.position = "none")
343
343
344
344
base
@@ -380,12 +380,12 @@ base <- base +
380
380
shape = 21,
381
381
stroke = 1,
382
382
color = "black",
383
- fill = "dodgerblue3 ")
383
+ fill = "steelblue ")
384
384
385
385
base <- base +
386
386
geom_point(aes(y = bill_length_standardized,
387
387
x = flipper_length_standardized),
388
- col = "dodgerblue3 ") +
388
+ col = "steelblue ") +
389
389
labs(x = "Flipper Length (standardized)", y = "Bill Length (standardized)") +
390
390
theme(legend.position = "none")
391
391
@@ -440,17 +440,17 @@ all_clusters_base <- all_clusters_base +
440
440
color = cluster)) +
441
441
xlab("Flipper Length (standardized)") +
442
442
ylab("Bill Length (standardized)") +
443
- scale_color_manual(values= c("darkorange3 ",
444
- "dodgerblue3 ",
443
+ scale_color_manual(values= c("darkorange ",
444
+ "steelblue ",
445
445
"goldenrod1"))
446
446
447
447
all_clusters_base <- all_clusters_base +
448
448
geom_point(aes(y = cluster_centers$y[1],
449
449
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) +
451
451
geom_point(aes(y = cluster_centers$y[2],
452
452
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) +
454
454
geom_point(aes(y = cluster_centers$y[3],
455
455
x = cluster_centers$x[3]),
456
456
color = "black", fill = "goldenrod1", size = 4, stroke = 1, shape = 21)
@@ -1015,8 +1015,8 @@ cluster_plot <- ggplot(clustered_data,
1015
1015
labs(x = "Flipper Length",
1016
1016
y = "Bill Length",
1017
1017
color = "Cluster") +
1018
- scale_color_manual(values = c("dodgerblue3 ",
1019
- "darkorange3 ",
1018
+ scale_color_manual(values = c("steelblue ",
1019
+ "darkorange ",
1020
1020
"goldenrod1")) +
1021
1021
theme(text = element_text(size = 12))
1022
1022
0 commit comments