The R Project SVN R

Rev

Rev 80648 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80648 Rev 83419
Line 1... Line 1...
1
% File src/library/graphics/man/axTicks.Rd
1
% File src/library/graphics/man/axTicks.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2021 R Core Team
3
% Copyright 1995-2022 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{axTicks}
6
\name{axTicks}
7
\alias{axTicks}
7
\alias{axTicks}
8
\title{Compute Axis Tickmark Locations}
8
\title{Compute Axis Tickmark Locations}
Line 83... Line 83...
83
}
83
}
84
par(op)
84
par(op)
85
 
85
 
86
x <- 9.9*10^(-3:10)
86
x <- 9.9*10^(-3:10)
87
plot(x, 1:14, log = "x")
87
plot(x, 1:14, log = "x")
88
axTicks(1) # now length 7, in R <= 2.13.x gave 'nintLog = Inf' res; then
88
axTicks(1) # now length 7
89
## 1e-01 1e+01 1e+03 1e+05 1e+07 1e+09 1e+11 ; since R 4.2.0: 1e-2 1e0 1e2 .. 1e10
-
 
90
axTicks(1, nintLog = Inf) # rather too many
89
axTicks(1, nintLog = Inf) # rather too many
91
 
90
 
92
## An example using axTicks() without reference to an existing plot
91
## An example using axTicks() without reference to an existing plot
93
## (copying R's internal procedures for setting axis ranges etc.),
92
## (copying R's internal procedures for setting axis ranges etc.),
94
## You do need to supply _all_ of axp, usr, log, nintLog
93
## You do need to supply _all_ of axp, usr, log, nintLog