The R Project SVN R

Rev

Rev 76276 | Rev 81192 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 76276 Rev 76277
Line 1... Line 1...
1
% File src/library/graphics/man/filled.contour.Rd
1
% File src/library/graphics/man/filled.contour.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-2014 R Core Team
3
% Copyright 1995-2019 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{filled.contour}
6
\name{filled.contour}
7
\alias{filled.contour}
7
\alias{filled.contour}
8
\alias{.filled.contour}
8
\alias{.filled.contour}
Line 14... Line 14...
14
               z,
14
               z,
15
               xlim = range(x, finite = TRUE),
15
               xlim = range(x, finite = TRUE),
16
               ylim = range(y, finite = TRUE),
16
               ylim = range(y, finite = TRUE),
17
               zlim = range(z, finite = TRUE),
17
               zlim = range(z, finite = TRUE),
18
               levels = pretty(zlim, nlevels), nlevels = 20,
18
               levels = pretty(zlim, nlevels), nlevels = 20,
19
               color.palette = hcl.colors,
19
               color.palette = function(n) hcl.colors(n, "YlOrRd", rev = TRUE),
20
               col = color.palette(length(levels) - 1),
20
               col = color.palette(length(levels) - 1),
21
               plot.title, plot.axes, key.title, key.axes,
21
               plot.title, plot.axes, key.title, key.axes,
22
               asp = NA, xaxs = "i", yaxs = "i", las = 1,
22
               asp = NA, xaxs = "i", yaxs = "i", las = 1,
23
               axes = TRUE, frame.plot = axes, \dots)
23
               axes = TRUE, frame.plot = axes, \dots)
24
 
24
 
Line 89... Line 89...
89
\references{
89
\references{
90
  Cleveland, W. S. (1993)
90
  Cleveland, W. S. (1993)
91
  \emph{Visualizing Data}.
91
  \emph{Visualizing Data}.
92
  Summit, New Jersey: Hobart.
92
  Summit, New Jersey: Hobart.
93
}
93
}
94
\author{Ross Ihaka and R-core.}
94
\author{Ross Ihaka and R Core Team}
95
\note{
95
\note{
96
  \code{filled.contour} uses the \code{\link{layout}} function and so is
96
  \code{filled.contour} uses the \code{\link{layout}} function and so is
97
  restricted to a full page display.
97
  restricted to a full page display.
98
 
98
 
99
  The output produced by \code{filled.contour} is actually a combination
99
  The output produced by \code{filled.contour} is actually a combination
Line 104... Line 104...
104
  plot, for example to add points, you can specify graphics commands in
104
  plot, for example to add points, you can specify graphics commands in
105
  the \code{plot.axes} argument.  See the examples.
105
  the \code{plot.axes} argument.  See the examples.
106
}
106
}
107
\seealso{
107
\seealso{
108
  \code{\link{contour}}, \code{\link{image}},
108
  \code{\link{contour}}, \code{\link{image}},
-
 
109
  \code{\link{hcl.colors}}, \code{\link{gray.colors}},
109
  \code{\link{palette}}; \code{\link[lattice:levelplot]{contourplot}}
110
  \code{\link{palette}}; \code{\link[lattice:levelplot]{contourplot}}
110
  and \code{\link[lattice]{levelplot}} from package \CRANpkg{lattice}.
111
  and \code{\link[lattice]{levelplot}} from package \CRANpkg{lattice}.
111
}
112
}
112
\examples{
113
\examples{
113
require(grDevices) # for colours
114
require("grDevices") # for colours
114
filled.contour(volcano, color = terrain.colors, asp = 1) # simple
115
filled.contour(volcano, asp = 1) # simple
115
 
116
 
116
x <- 10*1:nrow(volcano)
117
x <- 10*1:nrow(volcano)
117
y <- 10*1:ncol(volcano)
118
y <- 10*1:ncol(volcano)
118
filled.contour(x, y, volcano, color = terrain.colors,
119
filled.contour(x, y, volcano, color = function(n) hcl.colors(n, "terrain"),
119
    plot.title = title(main = "The Topography of Maunga Whau",
120
    plot.title = title(main = "The Topography of Maunga Whau",
120
    xlab = "Meters North", ylab = "Meters West"),
121
    xlab = "Meters North", ylab = "Meters West"),
121
    plot.axes = { axis(1, seq(100, 800, by = 100))
122
    plot.axes = { axis(1, seq(100, 800, by = 100))
122
                  axis(2, seq(100, 600, by = 100)) },
123
                  axis(2, seq(100, 600, by = 100)) },
123
    key.title = title(main = "Height\n(meters)"),
124
    key.title = title(main = "Height\n(meters)"),