Last chance! 50% off unlimited learning
Sale ends in
performs the scatter diagram for a paired coordinates.
s.match(df1xy, df2xy, xax = 1, yax = 2, pch = 20, cpoint = 1,
label = row.names(df1xy), clabel=1, edge = TRUE, xlim = NULL,
ylim = NULL, grid = TRUE, addaxes = TRUE, cgrid = 1,
include.origin = TRUE, origin = c(0,0), sub = "", csub = 1.25,
possub = "bottomleft", pixmap = NULL, contour = NULL, area = NULL,
add.plot = FALSE)
a data frame containing two columns from the first system
a data frame containing two columns from teh second system
the column number for the x-axis of both the two systems
the column number for the y-axis of both the two systems
if cpoint
> 0, an integer specifying the symbol or the single character to be used in plotting points
a character size for plotting the points, used with par("cex")*cpoint
. If zero, no points are drawn
a vector of strings of characters for the couple labels
if not NULL, a character size for the labels, used with par("cex")*clabel
If TRUE the arrows are plotted, otherwise only the segments are drawn
the ranges to be encompassed by the x axis, if NULL they are computed
the ranges to be encompassed by the y axis, if NULL they are computed
a logical value indicating whether a grid in the background of the plot should be drawn
a logical value indicating whether the axes should be plotted
a character size, parameter used with par("cex")* cgrid
to indicate the mesh of the grid
a logical value indicating whether the point "origin" should be belonged to the graph space
the fixed point in the graph space, for example c(0,0) the origin axes
a string of characters to be inserted as legend
a character size for the legend, used with par("cex")*csub
a string of characters indicating the sub-title position ("topleft", "topright", "bottomleft", "bottomright")
aan object pixmap
displayed in the map background
a data frame with 4 columns to plot the contour of the map : each row gives a segment (x1,y1,x2,y2)
a data frame of class 'area' to plot a set of surface units in contour
if TRUE uses the current graphics window
The matched call.
# NOT RUN {
if(!adegraphicsLoaded()) {
X <- data.frame(x = runif(50, -1, 2), y = runif(50, -1, 2))
Y <- X + rnorm(100, sd = 0.3)
par(mfrow = c(2, 2))
s.match(X, Y)
s.match(X, Y, edge = FALSE, clab = 0)
s.match(X, Y, edge = FALSE, clab = 0)
s.label(X, clab = 1, add.plot = TRUE)
s.label(Y, clab = 0.75, add.plot = TRUE)
s.match(Y, X, clab = 0)
par(mfrow = c(1, 1))
}
# }
Run the code above in your browser using DataLab