[R] tick marks covering the whole data range

From: Rosa Trancoso <arosa_at_ist.utl.pt>
Date: Tue, 22 Mar 2011 12:08:19 +0000

Dear R users,

I like to see plots with the tickmarks covering all range of data. For example, instead of


which gives y axis tick marks between -2 and 2, while the data has a wider range

I usually do this:

x=rnorm(100); plot(x, ylim=range(pretty(range(x)))

where y axis tick marks are between -3 and 3, covering the whole data range.

Is it possible to make this a default option?


Secção de Ambiente e Energia
Dep. Eng. Mecanica
Instituto Superior Técnico
Av. Rovisco Pais,1
1049-001 Lisboa

	[[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.

Received on Tue 22 Mar 2011 - 12:11:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Mar 2011 - 13:10:23 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.

list of date sections of archive