Usage
plot_2parOF(params, gofs, p1.name, p2.name, type="sp", MinMax=c("min","max"),
gof.name="GoF", main=paste(gof.name, "Surface"), GOFcuts,
colorRamp= colorRampPalette(c("darkred", "red", "orange", "yellow",
"green", "darkgreen", "cyan")), points.cex=0.7, alpha=0.65,
axis.rot=c(0, 0), auto.key=TRUE, key.space= "right")
Arguments
params
matrix or data.frame with the parameter values
gofs
numeric with the values of goodness-of-fit values for each one of the parameters in params
(in the same order!)
p1.name
character, name of the 1st parameter to be plotted
p2.name
character, name of the 2nd parameter to be plotted
type
character, type of plot. Valid values are:
-) sp: spatial plot
-) scatter3d: 3d scatterogram
MinMax
character, indicates whether the optimum value in gofs
corresponds to the minimum or maximum of the objective function. Valid values are in: c('min', 'max')
.
By default, MinMax='min'
which plot particles with lower
gof.name
character, name of the objective function to be plotted. It has to correspond to the name of one column of params
main
character with the title for the plot
GOFcuts
numeric, specifies at which values of the objective function given in gofs
the colours of the plot have to change
If GOFcuts
is missing, the interval for colours change are defined by the (unique values of the) five quantiles of
colorRamp
R function defining the colour ramp to be used for colouring the pseudo-3D dotty plots of Parameter Values, OR character representing those colours
points.cex
size of the points to be plotted
alpha
numeric between 0 and 1 representing the transparency level to apply to colorRamp
, 0 means fully transparent and 1 means opaque
axis.rot
numeric vector of length 2 representing the angle (in degrees) by which the axis labels are to be rotated, left/bottom and right/top, respectively.
auto.key
logical, indicates whether the legend has to be drawn or not
key.space
character, position of the legend with respect to the plot