Last data update: 2014.03.03

R: Symmetrical difference of RNP sets
plotSymDifRNPR Documentation

Symmetrical difference of RNP sets

Description

Plot the symmetrical difference between two Random Non-Dominated Point (RNP) sets.

Usage

plotSymDifRNP(set1, set2, xlim, ylim, fill = "black", add = "FALSE", ...)

Arguments

set1,set2

RNP sets considered,

xlim,ylim

numeric vectors of length 2, giving the x and y coordinates ranges for plotting,

fill

optional color of the symmetric difference area,

add

logical; if TRUE add to an already existing plot; if FALSE (default) start a new plot taking xlim, ylim as limits.

...

additional parameters for the plot and polygon graphic functions

Examples

#------------------------------------------------------------
# Simple example
#------------------------------------------------------------
set1 <- rbind(c(0.2, 0.35, 0.5, 0.8),
              c(0.8, 0.6, 0.55, 0.3))

set2 <- rbind(c(0.3, 0.4),
              c(0.7, 0.4))

plotSymDifRNP(set1, set2, xlim = c(0, 1), ylim = c(0, 1), fill = "grey")
points(t(set1), col = "red", pch = 20)
points(t(set2), col = "blue", pch = 20)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(GPareto)
Loading required package: DiceKriging
Loading required package: emoa
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GPareto/plotSymDifRNP.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotSymDifRNP
> ### Title: Symmetrical difference of RNP sets
> ### Aliases: plotSymDifRNP
> 
> ### ** Examples
> 
> #------------------------------------------------------------
> # Simple example
> #------------------------------------------------------------
> set1 <- rbind(c(0.2, 0.35, 0.5, 0.8),
+               c(0.8, 0.6, 0.55, 0.3))
> 
> set2 <- rbind(c(0.3, 0.4),
+               c(0.7, 0.4))
> 
> plotSymDifRNP(set1, set2, xlim = c(0, 1), ylim = c(0, 1), fill = "grey")
> points(t(set1), col = "red", pch = 20)
> points(t(set2), col = "blue", pch = 20)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>