eafdiffplot(data.left, data.right, intervals = c("[0.0, 0.2)","[0.2, 0.4)","[0.4, 0.6)", "[0.6, 0.8)","[0.8, 1.0]"), col = c("#FFFFFF", "#BFBFBF","#808080","#404040","#000000"), percentiles = c(50), full.eaf = FALSE, type = "area", legend.pos = if (full.eaf) "bottomleft" else "topright", title.left = deparse(substitute(data.left)), title.right = deparse(substitute(data.right)), xlim = NULL, ylim = NULL, cex = par("cex"), cex.lab = par("cex.lab"), cex.axis = par("cex.axis"), maximise = c(FALSE, FALSE), grand.lines = TRUE, ...)read.data.sets.
length(intervals) defines in how
many intervals the EAF differences are partitioned, whereas
intervals gives the labels of each interval for the legend.
length(col) == length(intervals).
NA does not plot any. See eafplot.default.
legend.
plot.default.
plot.default.
type = "point", only the points where there is a change in
the value of the EAF difference are plotted. This means that for areas
where the EAF differences stays constant, the region will appear in
white even if the value of the differences in that region is
large. This explain "white holes" surrounded by black
points. With type = "area", the area where the EAF differences has a
certain value is plotted. The idea for the algorithm to compute the
areas was provided by Carlos M. Fonseca. The implementation uses R
polygons, which some PDF viewers may have trouble rendering correctly
(See
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-are-there-unwanted-borders). Plots (should) look correct when printed.
Large differences that appear when using type = "points" may
seem to dissapear when using type = "area". The explanation is
the points size is independent of the axes range, therefore, the
plotted points may seem to cover a much larger area than the actual
number of points. On the other hand, the areas size is plotted with
respect to the objective space, without any extra borders. If the
range of an area becomes smaller than one-pixel, it won't be
visible. As a consequence, zooming in or out certain regions of the plots
does not change the apparent size of the points, whereas it affects
considerably the apparent size of the areas.
read.data.sets, eafplot
A1 <- read.data.sets(file.path(system.file(package="eaf"), "extdata", "ALG_1_dat"))
A2 <- read.data.sets(file.path(system.file(package="eaf"), "extdata", "ALG_2_dat"))
eafdiffplot(A1, A2, type = "area")
## Not run:
# eafdiffplot(A1, A2, type = "point")
# eafdiffplot(A1, A2, full.eaf = TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab