search for: legendtext

Displaying 2 results from an estimated 2 matches for "legendtext".

2009 Dec 11
1
Array of legend text with math symbols from predefined variables
Hello, I am trying to include legend text with math symbols from a predefined character variable that is read in from a file. ? If there is only one line of text in the legend, the following, although cumbersome, works for me: ? > LegendText = " 'U' [infinity], '=10 m/s' "?? # (read in from a file) ??> LegendName = paste("bquote(paste(",LegendText, "))") ? > plot( c(1,2,3), c(1,2,3) ) ? > legend(?topleft?,1, eval(parse(text=LegendName)) ) ?If I now have more than one line in a pl...
2009 Jan 14
4
How to get legend outside of plot?
I am creating a CDF plot function more user-friendly than any default r function. Depending upon the bimodality of the data (it is often bimodal), or any other strange data trends, the points can end up gathering in just about any corner of the plot. So, when I add a legend, whether I choose to add it in the bottom right, top left, or wherever, it will sometimes end up putting the legend right