value</span><span class='kw'>=</span><span class='st'>"graph example 2"</span>,
    <span class='kw'>stylename</span> <span class='kw'>=</span> <span class='st'>"rPlotLegend"</span> )

}

<span class='co'># Because we used "rPlotLegend" as legend in plot</span>
<span class='co'># , addTOC will use this stylename to define</span>
<span class='co'># entries in the generated TOC</span>
<span class='no'>doc</span> <span class='kw'>=</span> <span class='fu'>addTOC</span>(<span class='no'>doc</span>, <span class=