plotParetoEmp(nondominatedPoints, add = TRUE, max = FALSE, ...)
Arguments
nondominatedPoints
points considered to plot the Pareto front with segments, matrix with one point per row,
add
optional boolean indicating whether a new graphic should be drawn,
max
optional boolean indicating whether to display a Pareto front in a maximization context,
...
additional values to be passed to the lines function.
Examples
#------------------------------------------------------------
# Simple example
#------------------------------------------------------------
x <- c(0.2, 0.4, 0.6, 0.8)
y <- c(0.8, 0.7, 0.5, 0.1)
plot(x, y, col = "green", pch = 20)
plotParetoEmp(cbind(x, y), col = "green")
## Alternative
plotParetoEmp(cbind(x, y), col = "red", add = FALSE)
## With maximization
plotParetoEmp(cbind(x, y), col = "blue", max = TRUE)
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/plotParetoEmp.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotParetoEmp
> ### Title: Pareto front visualization
> ### Aliases: plotParetoEmp
>
> ### ** Examples
>
> #------------------------------------------------------------
> # Simple example
> #------------------------------------------------------------
>
> x <- c(0.2, 0.4, 0.6, 0.8)
> y <- c(0.8, 0.7, 0.5, 0.1)
>
> plot(x, y, col = "green", pch = 20)
>
> plotParetoEmp(cbind(x, y), col = "green")
> ## Alternative
> plotParetoEmp(cbind(x, y), col = "red", add = FALSE)
>
> ## With maximization
>
> plotParetoEmp(cbind(x, y), col = "blue", max = TRUE)
>
>
>
>
>
> dev.off()
null device
1
>