Description Usage Arguments Author(s) Examples
Plot scatterplots and pseudo-observations plots over a rectangular domain partition by rectangular areas (also called pixes). This function can be used with the function plottingPosition for the pseudo-observations.
1 2 3 4 |
x |
table (2-colum matrix or data.frame) of, possibly pseudo-, observations |
asp |
The |
main |
Character. Main title for the plot. See title. |
xGridBreaks, yGridBreaks |
zone delimiters. Default to Inter-Quartile Area (iqa := |
xlab, ylab |
Character. Label of the axis. |
xlabels, ylabels |
Character. Labels of the annotations of the axis ticks marks. |
xlSide, ylSide |
Side where the labels of the axis must be plotted. See |
col |
color of the points. |
colp |
color of the pixels. |
grid |
list. grid constructed with (posibly pseudo-) observations of modes, minima,
inflexion points or any other points of interest of both variables.
|
... |
further parameters to points.default. |
Francisco Mendoza-Torres (mentofran@gmail.com)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Example 1: pseudo-observations
ne <- 30
ue <- matrix(runif(ne), ne/2, 2)
xpixelse <- c(0, .25, .5, .75, 1)
dependenceAnalysisPlot(x = ue, xGridBreaks = xpixelse) # colp = rainbow(n = npixels),
# Example 2: observations
ne <- 100
ue <- matrix(rnorm(ne), ne/2, 2)
xpixelse <- quantile(ue[, 1])
ypixelse <- quantile(ue[, 2])
dependenceAnalysisPlot(x = ue, asp = NA,
xlabels = c("min", "q1", "M", "q3", "max"),
xGridBreaks = xpixelse,
yGridBreaks = ypixelse)
npixels <- (length(xpixelse) - 1) * (length(ypixelse) - 1)
dependenceAnalysisPlot(x = ue,
xGridBreaks = xpixelse,
yGridBreaks = ypixelse,
colp = rainbow(n = npixels),
pch = 20, cex = 2, asp = NA,
grid = list(h = 0, v = c(-1, 1),
lty = 2, col = "blue"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.