[R] nice log-log plots

Petr Pikal petr.pikal at precheza.cz
Fri Feb 10 12:13:43 CET 2006


Hi

plot(1:100,1:100, log="xy")
abline(v=seq(0,100,10), lty=3)
abline(h=seq(0,100,10), lty=3)
or

plot(1:100,1:100, log="xy", axes=F)
axis(1, at=(seq(0,100,20)))
axis(2, at=(seq(0,100,10)))
abline(v=seq(0,100,20), lty=3)
abline(h=seq(0,100,10), lty=3)

isn't it nice?
See some other magigraphical parameters in

?par

HTH
Petr

BTW I do not have much time to spent it on such a task either 
especially when only you know what you want to achieve.


On 9 Feb 2006 at 17:02, Alexandru Codilean wrote:

From:           	"Alexandru Codilean" <tcodilean at geog.gla.ac.uk>
To:             	r-help at stat.math.ethz.ch
Date sent:      	Thu, 09 Feb 2006 17:02:28 +0000
Subject:        	[R] nice log-log plots
Send reply to:  	tcodilean at ges.gla.ac.uk
	<mailto:r-help-request at stat.math.ethz.ch?subject=unsubscribe>
	<mailto:r-help-request at stat.math.ethz.ch?subject=subscribe>

> Dear All,
> 
> I am trying to produce log-log plots in R and I was wondering if any
> of you have a 'template' for generating these with 'nice' labels and
> log-log grids?
> 
> I know I can set up axes individually and use the intervals I want,
> however, I will be producing a large number of these plots and would
> not like to do this manually for each of them + I am very new to R and
> at the moment do not have much time that I could spend figuring this
> out by myself.....
> 
> Any help would be greatly appreciated!
> Thanks
> Tibi
> ____________________________________________________
> 
> Alexandru Tiberiu CODILEAN
> PhD Candidate
> Departmental IT Committee PG Rep.
> 
> Department of Geographical and Earth Sciences 
> East Quadrangle, Room 309 
> University Avenue 
> University of Glasgow 
> Glasgow G12 8QQ UK 
> 
> Tel: +44 (0) 141 330 4872 ext. 0935 
> Fax: +44 (0) 141 330 4894
> Email: tcodilean at ges.gla.ac.uk
> 
> Home: http://web.ges.gla.ac.uk/~tcodilean/
> GRASS Mirror: http://pc188.geog.gla.ac.uk/grass/
> 
> A gleekzorp without a tornpee is like a quop without a fertsneet (sort
> of)
> 
> ______________________________________________
> R-help at 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

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list