Further Examples: Partition
This groups the elements of the original list in pairs; the last element is thrown away.
This makes triples of elements, with each successive triple offset by elements.
Here the offset is .
Define a matrix.
This partitions the matrix into blocks of size . The extra elements that do not fit are thrown away; here these are the last row and last column.
The indicates an offset at level (the rows) and at level (the columns).
Here the element a appears at position of the block and the element y appears at position of the block.
This pads with , , and .
Here is the direct way to make a cylinder using the package Shapes.
Here is another approach using Partition. The function makeCylinder[r, h, n] gives the graphic for a cylinder of radius r, height h approximated by n vertical rectangles.
The function TreeGraphic produces trees with leaves.