Skip to content
Back to formatted view

Raw Message

Message-ID: <49C4B032.8090206@bitwrit.com.au>
Date: 2009-03-21T09:15:30Z
From: Jim Lemon
Subject: R:  Multi-line texts in plots
In-Reply-To: <6B32C438581E5D4C8A34C377C3B334A401752A0B@FBCMST11V04.fbc.local>

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