Show charts as % not a count
btibert
New Altair Community Member
I am probably missing something obvious, but if I have a barplot of nominal value, I would like to see the % of the total, not the count. Same goes for a pie chart. Where can I apply that setting? I see various aggregations, but not % of total.
Thanks!
Thanks!
Tagged:
0
Best Answer
-
RM Studio Visualization doesn't have aggregation function "% of total" but you can first calculate that total using "Aggregate" operator and then visualize.
5
Answers
-
RM Studio Visualization doesn't have aggregation function "% of total" but you can first calculate that total using "Aggregate" operator and then visualize.
5 -
Another option is to get a quick pivot from TurboPrep
Choose the count (percentage) in pivot, you are ready to go for the % counts plots
With the pivot table for counts, percentages, averages, you can also make a quick chart
HTH!
YY1 -
Thanks, I am trying to stay away from AutoModel because I want the class to wrestle with visually programming and working through the mechanics of cleaning, reshaping, aggregating data. Aggregation makes sense, I just though this would have been a straight forward task using base RM. In the short run, I can show them the distribution of the label via ExampleSet > Stats1