Skip to content
Prev 174419 / 398506 Next

R: Multi-line texts in plots

mauede at alice.it wrote:
Hi Maura,
You can get a rather basicbox of text in the lower right quadrant by 
starting a plot:

plot(1:10,axes=FALSE,type="n")

and then just whacking the text in with boxed.labels in the plotrix package.

boxed.labels(5,5,"   Flags Values
1       TrendOff      0
2          MOdwt      1
3    ZeroPadding      1
4     Step1HSOff      1
5  Step1NumHSOff      4
6  Step1NumHSOff      1
7    Step1ExtOff      1
8     Step2HSOff      1
9  Step2NumHSOff      4
10 Step2NumHSOff      1
11   Step2ExtOff      1
12    Step3HSOff      1
13 Step3NumHSOff      4
14 Step3NumHSOff      1
15   Step3ExtOff      1
16    Step4HSOff      1
17 Step4NumHSOff      4
18 Step4NumHSOff      1
19   Step4ExtOff      1",adj=0)

Jim