File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -949,14 +949,12 @@ islands_bar
949
949
The plot in Figure \@ ref(fig:03-data-islands-bar-2) is definitely clearer now,
950
950
and allows us to answer our question
951
951
("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 ` .
960
958
To organize the landmasses by their ` size ` variable,
961
959
we will use the ` tidyverse ` ` fct_reorder ` function
962
960
in the aesthetic mapping to organize the landmasses by their ` size ` variable.
You can’t perform that action at this time.
0 commit comments