Skip to content

Commit d66be90

Browse files
trying to keep size 12 font in barplot title for consistency
1 parent fc78bb6 commit d66be90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/viz.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ and add a title to the chart. Plot titles are not always required, especially wh
973973
it would be redundant with an already-existing
974974
caption or surrounding context (e.g., in a slide presentation with annotations).
975975
But if you decide to include one, a good plot title should provide the take home message
976-
that you want readers to focus on, e.g., "Earth's seven largest landmasses are all continents,"
976+
that you want readers to focus on, e.g., "Earth's seven largest landmasses are continents,"
977977
or a more general summary of the information displayed, e.g., "The twelve largest landmasses on Earth."
978978

979979
To make these final adjustments we will use the `labs` function rather than the `xlab` and `ylab` functions
@@ -991,8 +991,8 @@ islands_bar <- ggplot(islands_top12,
991991
labs(x = "Size (1000 square mi)",
992992
y = "Landmass",
993993
fill = "Type",
994-
title = "Earth's seven largest landmasses are all continents") +
995-
theme(text = element_text(size = 10))
994+
title = "Earth's seven largest landmasses are continents") +
995+
theme(text = element_text(size = 12))
996996
997997
islands_bar
998998
```

0 commit comments

Comments
 (0)