[R] how to control ticks

peter dalgaard pdalgd at gmail.com
Tue Dec 21 17:35:42 CET 2010


On Dec 21, 2010, at 17:01 , Edwin Groot wrote:

> On Tue, 21 Dec 2010 18:06:52 +0530
> Yogesh Tiwari <yogesh.mpi at googlemail.com> wrote:
>> Hi,
>> I want 12 ticks at axis 1 and want to write Jan-Dec on each.
>> 
>> something like:
>> 
>> axis(1, at=1:12,
>> labels=c('J','F','M','A','M','J','J','A','S','O','N','D'))
>> 
>> I could omit default ticks but now how to control ticks.
>> 
> 
> Dear Yogesh,
> I spray my clothing with "No-Bite", and that controls ticks quite well.

Yeah, but then how do you get the suckers to sit still while you write on them?

;-)

> 
> :-)
> Edwin
> 
>> plot(file$time, file$ch4*1000, ylim=c(1500,1700), xaxt='n', xlab= NA,
>> ylab=NA,col="blue",yaxs="i",lwd=2, pch=10, type="b")#
>> 
>> axis(1, at=1:12,
>> labels=c('J','F','M','A','M','J','J','A','S','O','N','D'))
>> 
>> BUT above is not working, and there is no error as well.
>> 
>> Pls help,
>> 
>> Regards,
>> Yogesh
>> 
>> 	[[alternative HTML version deleted]]
>> 
>> ______________________________________________
>> R-help at r-project.org 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.
> 
> Dr. Edwin Groot, postdoctoral associate
> AG Laux
> Institut fuer Biologie III
> Schaenzlestr. 1
> 79104 Freiburg, Deutschland
> +49 761-2032945
> 
> ______________________________________________
> R-help at r-project.org 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.

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list