### 20.1.15 Pie charts

You can draw pie charts using the same structure as bar plots.

The camembert command draws pie charts.

- camembert takes one mandatory argument and one optional argument:
  - M, a matrix, where each row consists of a label followed by one or more values. If the labels are followed by more than one value, then the first row needs to be identifiers.
  - Optionally, color=cols, where cols is a list of two or more color objects (see Section 19.1.3). By default, cols=[black,red,green,yellow,blue, magenta,cyan].
- camembert(M) draws a pie chart with a sector for each label, whose size is determined by the corresponding value. If the matrix has more than two columns, then there will be a pie chart for each column of values. Pie slices are filled with colors from cols such that the color index cycles counter-clockwise through the list (starting from the lowest slice in the first quadrant).

#### Examples

camembert([["France",6],["Germany",12],["Switzerland",5]])

camembert([[4,"*First*","*Second*","*Third*","*Fourth*"], ["A",2,5,4,7],["B",5,6,7,8],["C",6,6,5,3]],color=[teal,olive,gold])