Skip to content

Commit bf53c65

Browse files
committed
changing plot font size in classification1
1 parent 9b76d40 commit bf53c65

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

classification1.Rmd

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ print_tidymodels <- function(tidymodels_object) {
3131
}
3232
}
3333
}
34+
35+
theme_update(axis.title = element_text(size = 14)) # modify axis label size in plots
3436
```
3537

3638
## Overview
@@ -236,7 +238,8 @@ perim_concav <- cancer |>
236238
y = "Concavity (standardized)",
237239
color = "Diagnosis") +
238240
scale_color_manual(labels = c("Malignant", "Benign"),
239-
values = c("orange2", "steelblue2"))
241+
values = c("orange2", "steelblue2")) +
242+
theme(text = element_text(size = 14))
240243
perim_concav
241244
```
242245

@@ -1103,7 +1106,8 @@ rare_plot <- rare_cancer |>
11031106
y = "Concavity (standardized)",
11041107
color = "Diagnosis") +
11051108
scale_color_manual(labels = c("Malignant", "Benign"),
1106-
values = c("orange2", "steelblue2"))
1109+
values = c("orange2", "steelblue2")) +
1110+
theme(text = element_text(size = 14))
11071111
11081112
rare_plot
11091113
```
@@ -1398,7 +1402,8 @@ wkflw_plot <-
13981402
x = "Area (standardized)",
13991403
y = "Smoothness (standardized)") +
14001404
scale_color_manual(labels = c("Malignant", "Benign"),
1401-
values = c("orange2", "steelblue2"))
1405+
values = c("orange2", "steelblue2")) +
1406+
theme(text = element_text(size = 14))
14021407
14031408
wkflw_plot
14041409
```

0 commit comments

Comments
 (0)