Re: [R] Add notes to a graph

2005-12-27 Thread Ener Borg
Ronnie Babigumira skrev:
 Hi, I have done a search on this in vain. How can I add a note to the foot of 
 a graph example below

Can you use this?:

plot(1:10, 1:10, main = Maintitle, sub = subtitle) mtext(Another
possibillity, side=4)







 
 |---|
 |  Title  |
 |     |
 | |  my   |   |
 | | graph |   |
 | |   |   |
 | | __|   |
 |note: source |
 |---|
 
 
 Many thanks
 
 Ronnie

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Add notes to a graph

2005-12-27 Thread John Logsdon
Closer to what Ronnie needs is:

plot(1:10, 1:10, main = Title)
mtext(Note: source,side=1,line=4,adj=0)

The line number may need adjustment.

Best wishes

John

John Logsdon   Try to make things as simple
Quantex Research Ltd, Manchester UK as possible but not simpler
[EMAIL PROTECTED]  [EMAIL PROTECTED]
+44(0)161 445 4951/G:+44(0)7717758675   www.quantex-research.com


On Tue, 27 Dec 2005, Ener Borg wrote:

 Ronnie Babigumira skrev:
  Hi, I have done a search on this in vain. How can I add a note to the foot 
  of a graph example below
 
 Can you use this?:
 
 plot(1:10, 1:10, main = Maintitle, sub = subtitle) mtext(Another
 possibillity, side=4)
 
 
 
 
 
 
 
  
  |---|
  |Title  |
  |   |
  |   |  my   |   |
  |   | graph |   |
  |   |   |   |
  |   | __|   |
  |note: source   |
  |---|
  
  
  Many thanks
  
  Ronnie
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Add notes to a graph

2005-12-27 Thread Ronnie Babigumira
Many thanks John.

John Logsdon wrote:
 Closer to what Ronnie needs is:
 
 plot(1:10, 1:10, main = Title)
 mtext(Note: source,side=1,line=4,adj=0)
 
 The line number may need adjustment.
 
 Best wishes
 
 John
 
 John Logsdon   Try to make things as simple
 Quantex Research Ltd, Manchester UK as possible but not simpler
 [EMAIL PROTECTED]  [EMAIL PROTECTED]
 +44(0)161 445 4951/G:+44(0)7717758675   www.quantex-research.com
 
 
 On Tue, 27 Dec 2005, Ener Borg wrote:
 
 Ronnie Babigumira skrev:
 Hi, I have done a search on this in vain. How can I add a note to the foot 
 of a graph example below
 Can you use this?:

 plot(1:10, 1:10, main = Maintitle, sub = subtitle) mtext(Another
 possibillity, side=4)







 |---|
 |Title  |
 |   |
 |   |  my   |   |
 |   | graph |   |
 |   |   |   |
 |   | __|   |
 |note: source   |
 |---|


 Many thanks

 Ronnie
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Add notes to a graph

2005-12-26 Thread P Ehlers
?mtext

Peter Ehlers

Ronnie Babigumira wrote:
 Hi, I have done a search on this in vain. How can I add a note to the foot of 
 a graph example below
 
 |---|
 |  Title  |
 |     |
 | |  my   |   |
 | | graph |   |
 | |   |   |
 | | __|   |
 |note: source |
 |---|
 
 
 Many thanks
 
 Ronnie
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Add notes to a graph

2005-12-26 Thread justin bem
Have you try ?legend
  or ?text
   
  Ronnie Babigumira [EMAIL PROTECTED] a écrit :
  Hi, I have done a search on this in vain. How can I add a note to the foot of 
a graph example below

|---|
| Title |
|  |
| | my | |
| | graph | |
| | | |
| | __| |
|note: source |
|---|


Many thanks

Ronnie

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



-

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Add notes to a graph

2005-12-26 Thread Ronnie Babigumira
Thank you all, ?sub did the trick. One more question, Is it possible to 
orientate the sub title independently from the 
  main title.

This is what I would like to do, add a title, label the axes, and add a small 
note to the bottom left of the plot area.

|---|
| Title |
|   |
|   | my|   |
|   | graph |   |
|   |   |   |
|   | __|   |
|   |   
|   |
|note: source   |
|---|

The example in the help file shows how I can add the title, sub, as well as 
tweak the size and color.
plot(1, col.axis = sky blue, col.lab = thistle)
title(Main Title, sub = sub title,
cex.main = 2,   font.main= 4, col.main= blue,
cex.sub = 0.75, font.sub = 3, col.sub = red)

If I add adj = 0, I get what I want, however, both the title and the note (main 
and sub rspv) both get the same 
orientation. Any ideas on how one can go about this (adj.sub does not  work)

Ronnie

justin bem wrote:
 Have you try ?legend
   or ?text

   Ronnie Babigumira [EMAIL PROTECTED] a écrit :
   Hi, I have done a search on this in vain. How can I add a note to the foot 
 of a graph example below
 
 |---|
 | Title |
 |  |
 | | my | |
 | | graph | |
 | | | |
 | | __| |
 |note: source |
 |---|
 
 
 Many thanks
 
 Ronnie
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
 
 
   
 -
 
   [[alternative HTML version deleted]]
 
 
 
 
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Add notes to a graph

2005-12-26 Thread P Ehlers
Just use two title()s:

plot(1)
title(Main Title, cex.main=2)
title(sub = sub title, cex.sub = 0.75, adj = 0)

Peter Ehlers

Ronnie Babigumira wrote:
 Thank you all, ?sub did the trick. One more question, Is it possible to 
 orientate the sub title independently from the 
   main title.
 
 This is what I would like to do, add a title, label the axes, and add a small 
 note to the bottom left of the plot area.
 
 |---|
 |   Title |
 | |
 | | my|   |
 | | graph |   |
 | |   |   |
 | | __|   |
 | |   
 | |
 |note: source |
 |---|
 
 The example in the help file shows how I can add the title, sub, as well as 
 tweak the size and color.
 plot(1, col.axis = sky blue, col.lab = thistle)
   title(Main Title, sub = sub title,
   cex.main = 2,   font.main= 4, col.main= blue,
   cex.sub = 0.75, font.sub = 3, col.sub = red)
 
 If I add adj = 0, I get what I want, however, both the title and the note 
 (main and sub rspv) both get the same 
 orientation. Any ideas on how one can go about this (adj.sub does not  work)
 
 Ronnie
 
 justin bem wrote:
 
Have you try ?legend
  or ?text
   
  Ronnie Babigumira [EMAIL PROTECTED] a écrit :
  Hi, I have done a search on this in vain. How can I add a note to the foot 
 of a graph example below

|---|
| Title |
|  |
| | my | |
| | graph | |
| | | |
| | __| |
|note: source |
|---|


Many thanks

Ronnie

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


  
-

  [[alternative HTML version deleted]]





__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
 
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Add notes to a graph

2005-12-26 Thread Ronnie Babigumira
Many thanks Peter, had actually tried that but was hoping there was something 
that could save me one extra line of code :-).

Cheers

Ronnie

P Ehlers wrote:
 Just use two title()s:
 
 plot(1)
 title(Main Title, cex.main=2)
 title(sub = sub title, cex.sub = 0.75, adj = 0)
 
 Peter Ehlers
 
 Ronnie Babigumira wrote:
 Thank you all, ?sub did the trick. One more question, Is it possible 
 to orientate the sub title independently from the   main title.

 This is what I would like to do, add a title, label the axes, and add 
 a small note to the bottom left of the plot area.

 |---|
 |   Title |
 | |
 | | my | |
 | | graph | |
 | | | |
 | | __| |
 ||   
 ||
 |note: source|
 |---|

 The example in the help file shows how I can add the title, sub, as 
 well as tweak the size and color.
 plot(1, col.axis = sky blue, col.lab = thistle)
 title(Main Title, sub = sub title,
 cex.main = 2,   font.main= 4, col.main= blue,
 cex.sub = 0.75, font.sub = 3, col.sub = red)

 If I add adj = 0, I get what I want, however, both the title and the 
 note (main and sub rspv) both get the same orientation. Any ideas on 
 how one can go about this (adj.sub does not  work)

 Ronnie

 justin bem wrote:

 Have you try ?legend
  or ?text
Ronnie Babigumira [EMAIL PROTECTED] a écrit :
  Hi, I have done a search on this in vain. How can I add a note to 
 the foot of a graph example below

 |---|
 | Title |
 |  |
 | | my | |
 | | graph | |
 | | | |
 | | __| |
 |note: source |
 |---|


 Many thanks

 Ronnie

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html



 -

 [[alternative HTML version deleted]]



 

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html


 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html
 


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html