Re: [R] Description of x-axis

From: Christian Oswald <c.oswald_at_matsci.uni-sb.de>
Date: Tue 12 Sep 2006 - 06:42:17 GMT

Thanks,
that works but what are the coordinates of "at" in the y-direction? On which y-position mtext plots?

Christian

Jeff Bricker schrieb:

> ?mtext, also ?barplot since barplot returns midpoints of the bars.
> 
> also ?rep for setting up a vector of repeating values.
> 
> something like this:
> xLabels<-c(rep("2003",4),rep("2005",11),rep("2006",5))
> midPoints<-barplot(<your original statements here>)
> mtext(xLabels,side=1,at=apply(midPoints,2,mean))
> 
> On 9/11/06, Christian Oswald <c.oswald@matsci.uni-sb.de> wrote:

>> Hello,
>>
>> I have made a barplot with some data and need a description below the
>> x-axis. For example there are 20 values and I need a description "2003"
>> for the first four values, then "2005" for the next eleven and "2006"
>> for the last five values.
>>
>> I want the description below the x-axis-labels and above the x-axis
>> title.
>>
>> Thanks,
>>
>> Christian
>>
>> ______________________________________________
>> 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
>> and provide commented, minimal, self-contained, reproducible code.
>>
> 
> 
> 


-- 
Diplom-Ingenieur Christian Oswald
Universitaet des Saarlandes
Lehrstuhl fuer Pulvertechnologie von Glas und Keramik
Gebaude D2 2
D-66123 Saarbruecken

Tel.: (+49) 0681/302-5249
Fax.: (+49) 0681/302-5227

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.
Received on Tue Sep 12 16:45:48 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 12 Sep 2006 - 07:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.