This example appeared in the R Graphics Cookbook, or at least that’s where I found it. It is here so that automated description of graphs by BrailleR can be demonstrated.


The data used for this graph comes from an experiment on cabbage growth.

ggplot(cabbage_exp, aes(x = Date, y = Weight, fill = Cultivar)) +
  geom_col(position = "fill")

Graph with three stacked proportional bars, each for 2 cultivars

This is an untitled chart with no subtitle or caption.
It has x-axis 'Date' with labels d16, d20 and d21.
It has y-axis 'Weight' with labels 0.00, 0.25, 0.50, 0.75 and 1.00.
There is a legend indicating fill is used to show Cultivar, with 2 levels:
c39 shown as strong reddish orange fill and 
c52 shown as brilliant bluish green fill.
The chart is a bar chart with 3 vertical bars.
Bar 1 is centered at 1, and length is from 0.42 to 1 with fill colour strong reddish orange which maps to Cultivar = c39.
Bar 2 is centered at 2, and length is from 0.53 to 1 with fill colour strong reddish orange which maps to Cultivar = c39.
Bar 3 is centered at 3, and length is from 0.35 to 1 with fill colour strong reddish orange which maps to Cultivar = c39.
Bar 4 is centered at 1, and length is from 0 to 0.42 with fill colour brilliant bluish green which maps to Cultivar = c52.
Bar 5 is centered at 2, and length is from 0 to 0.53 with fill colour brilliant bluish green which maps to Cultivar = c52.
Bar 6 is centered at 3, and length is from 0 to 0.35 with fill colour brilliant bluish green which maps to Cultivar = c52.

N.B. the description provides the infomation on all six bars. The user must work out that in fact there are three pairs of bars stacked together, and that each pair spans the range zero to one.


Download Example3.Rmd