Adding zero valued entries so that all groups have entries for the same items
问题 I'm trying to use Rcharts to create a stacked bar chart across a number of recorded regions (stacking separate group values on top of each other). The data is in a format similar to below. Region | Group | Value ---------------------- USA | A | 5 USA | B | 3 USA | C | 1 UK | A | 4 UK | B | 6 France | C | 3 Using the below code produces a grouped bar chart which works fine. However the stacked button does nothing to change the plot. nPlot(Value ~ Region, group = 'Group', data = example_data,