[R] R: Multi-line texts in plots
Jim Lemon
jim at bitwrit.com.au
Sat Mar 21 10:15:30 CET 2009
mauede at alice.it wrote:
> Now that I have my list of flags with theri respective values (thanks to all those who posted their suggestions):
>
> 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
>
> The next step is to insert the above list in a composite plot made up of 4 quadrants. The top 2 quadrants are filled with a barplot, the bottom left quadrant is filled with a 2-tracks plot. I would like to place the flags list in the bottom right quadrant.
>
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
More information about the R-help
mailing list