Description Usage Arguments Details Value Note Author(s) See Also Examples
Produces an image scatter plot of large datasets where the colors encode the density of the points in the scatter plot. Works also with factors.
1 2 3 4 5 6 7 8 9 10  iplot(x, y = NULL,
pixs = 1, zmax = NULL, ztransf = function(x){x},
colramp = IDPcolorRamp, cex = par("cex"),
main = NULL, d.main = 1, cex.main = par("cex.main"),
xlab = NULL, ylab = NULL, cex.lab = 1,
legend = TRUE, d.legend = 1,
cex.axis = par("cex.axis"), nlab.xaxis = 5, nlab.yaxis = 5,
minL.axis = 3, las = 1, border = FALSE,
oma = c(5,4,1,0)+0.1, mgp = c(2,0.5,0)*cex.axis, tcl = 0.3, ...
)

x,y 
Coordinates of points whose density is to be plotted. If

pixs 
Pixelsize in mm. 
zmax 
Maximum number of counts per pixel in the plot. When

ztransf 
Function to transform the number of counts per
pixel, which will be mapped by the function in 
colramp 
Color ramp to encode the number of counts within a pixel. 
cex 
Magnification of text relative to default. 
main 
Title. 
d.main 
Vertical distance between upper border of scatter plots and the title line in multiples of title height. 
cex.main 
Magnification used for title relative to the current setting of cex. 
xlab 
Label for xaxis. 
ylab 
Label for yaxis. 
cex.lab 
Magnification used for text in axis labels relative to the current setting of cex 
legend 
Logical. When 
d.legend 
Horizontal distance between right border of scatter plot and legend in multiples of title height. 
cex.axis 
Magnification used for axis annotation relative to the current setting of cex. 
nlab.xaxis, nlab.yaxis 
Approximate number of labels on x and yaxes respectively. 
minL.axis 
The minimum length of the abbreviations of factor levels, used to label the axes ticks. 
las 
Orientation of labels on axes. 
border 
Logical. When 
oma 
Outer margin. Cf. 
mgp, tcl 
Cf. 
... 
Additional arguments to 
The idea of this plot is similar to
gplot.hexbin
. The
hexagons are better suited to reflect the density of points in a plane
than the squares used here. Nevertheless squares are, contrary to
hexagons, invariant to reflexions at the x and yaxis and
therefore suited for scatter plot matrices and also for plotting
factors.
Maximum number of counts per Pixel found.
When you get the error message "Zmax too small! Densiest aereas are out of range!" you must run the function again without specifying zmax. The value returned gives you the minimum value allowed for zmax.
Andreas Ruckstuhl, Rene Locher
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  x < rnorm(10000)
y < atan(rnorm(10000, 0))
iplot(x, y)
iplot(x, pixs = 2)
oma < c(5,5,0,0)
iplot(iris[,1:2], pixs = 4, oma = oma)
iplot(iris[,"Petal.Width"], iris[,"Species"], pixs = 4, oma = oma)
iplot(x = iris[,"Species"], y = iris[,"Petal.Width"], pixs = 10,border = TRUE,
xlab = "Species",
ylab = "Petal Width",
main = "Iris Species and Petal Width", oma = oma)
iplot(iris$Species, iris$Petal.Width,pixs = 3, minL.axis = 10,
oma = c(3,6,0,0), mgp = c(4, 1, 0),
cex.axis = 2, cex.lab = 2, cex.main = 2, main = "Larger fonts")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.