Skip to content

Commit dadd05b

Browse files
improved text about barplot refine in viz
1 parent 2c1ea4c commit dadd05b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

source/viz.Rmd

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -949,14 +949,12 @@ islands_bar
949949
The plot in Figure \@ref(fig:03-data-islands-bar-2) is definitely clearer now,
950950
and allows us to answer our question
951951
("Are the top 7 largest landmasses continents?") in the affirmative.
952-
However, we could still improve this visualization by organizing
953-
the bars by landmass size rather than by alphabetical order,
954-
and by coloring the bars based on whether they correspond to a continent.
955-
The data for this is stored in the `landmass_type` column.
956-
To use this to color the bars,
957-
we add the `fill` argument to the aesthetic mapping
958-
and set it to `landmass_type`.
959-
952+
However, we could still improve this visualization by
953+
coloring the bars based on whether they correspond to a continent,
954+
and by organizing the bars by landmass size rather than by alphabetical order.
955+
The data for coloring the bars is stored in the `landmass_type` column,
956+
so we add the `fill` argument to the aesthetic mapping
957+
and set it to `landmass_type`.
960958
To organize the landmasses by their `size` variable,
961959
we will use the `tidyverse` `fct_reorder` function
962960
in the aesthetic mapping to organize the landmasses by their `size` variable.

0 commit comments

Comments
 (0)