You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scatter plot of percentage of Canadians reporting a language as their mother tongue vs the primary language at home colored by language category with custom colors.
1069
+
Scatter plot of percentage of Canadians reporting a language as their mother tongue vs the primary language at home colored by language category with custom colors and shapes.
1070
1070
:::
1071
1071
1072
1072
The chart above gives a good indication of how the different language categories differ,
.title("Mother tongue(percentage of Canadian residents)"),
1092
+
.title("Mother tongue(percentage of Canadian residents)"),
1093
1093
color=alt.Color("category")
1094
1094
.legend(orient="top")
1095
1095
.title("")
@@ -1112,7 +1112,7 @@ else:
1112
1112
:figwidth: 700px
1113
1113
:name: can_lang_plot_tooltip
1114
1114
1115
-
Scatter plot of percentage of Canadians reporting a language as their mother tongue vs the primary language at home colored by language category with custom colors and mouse hover tooltip.
1115
+
Scatter plot of percentage of Canadians reporting a language as their mother tongue vs the primary language at home colored by language category with custom colors and mouse hover tooltip.
1116
1116
:::
1117
1117
1118
1118
From the visualization in {numref}`can_lang_plot_tooltip`,
@@ -1163,10 +1163,13 @@ islands_df
1163
1163
Here, we have a data frame of Earth's landmasses,
1164
1164
and are trying to compare their sizes.
1165
1165
The right type of visualization to answer this question is a bar plot.
1166
-
In a bar plot, the height of the bar represents the value of a summary statistic
1167
-
(usually a size, count, sum, proportion, or percentage).
1168
-
They are particularly useful for comparing summary statistics between different
1169
-
groups of a categorical variable.
1166
+
In a bar plot, the height of each bar represents the value of an *amount*
1167
+
(a size, count, proportion, percentage, etc).
1168
+
They are particularly useful for comparing counts or proportions across different
1169
+
groups of a categorical variable. Note, however, that bar plots should generally not be
1170
+
used to display mean or median values, as they hide important information about
1171
+
the variation of the data. Instead it's better to show the distribution of
1172
+
all the individual data points, e.g., using a histogram, which we will discuss further in {numref}`histogramsviz`.
0 commit comments