Description Usage Arguments Details Examples
The function is a wrapper for the image()
function, but with a comfortable
control of the z-axis and its color legend. The wrapper also supports image
resizing (resolution) and png output for better export.
1 2 3 4 5 |
x |
x-axis vector corresponding to the z-matrix |
y |
y-axis vector corresponding to the z-matrix |
z |
numeric matrix to be plotted |
zlim |
sets the range of the color coded z-axis |
xlim |
the x limits (x1, x2) of the plot. Note that The default value, |
ylim |
the y limits of the plot. |
dim.max |
defines the dimensions of the visible area of z. It automatically invokes a rescale. In case of large data sets this parameter can improve plotting speed. |
plot.zero.line |
logical, if a line at |
regularGrid |
logical, if |
zlab |
defines the z-label |
z.cex |
cex value for the z-label. It sets the font size in relation to
the global |
z.adj |
a two component vector. It sets the left/right and top/bottom justification |
z.format |
controls how the numbers besides the color scale are composed.
It works like the |
ndz |
sets the axis breaks right to the color scale |
ncolors |
number of colors to use in the plot |
palette |
defines the color palette to be used in the plot |
palette.inv |
logical, if |
... |
further arguments to the plot function, e.g. |
The regularGrid
option forces interpolation in case of irregular spacing
of x
or y
. All data is then projected on a regular grid.
This correction invokes a spline interpolation. Missing NA
values
are ignored.
1 2 3 4 | rasterImage2( z = volcano, palette = "spectral", dim.max = c(500,100)
,zlab = "Height", z.adj = c(0,1) ,z.cex = 1
,main = "Volcano Data Set"
)
|
Loading required package: plotrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.