hydroPSO (with optional plot)params2ecdf(params, ...)## S3 method for class 'default':
params2ecdf(params, param.names=NULL, gofs=NULL, MinMax=NULL, 
        beh.thr=NA, weights=NULL, byrow=FALSE, plot=TRUE, obs=NULL, main=NULL, 
        nrows="auto", ylab="Probability", col="blue", leg.cex=1.2, 
        leg.pos="topleft", cex.axis=1.2, cex.main=1.2, cex.lab=1.2, 
        verbose=TRUE, ..., do.png=FALSE, png.width=1500, png.height=900, 
        png.res=90, png.fname="Params_ECDFs.png")
              
## S3 method for class 'matrix':
params2ecdf(params, param.names=colnames(params), gofs=NULL, 
        MinMax=NULL, beh.thr=NA, weights, byrow=FALSE, plot=TRUE, obs=NULL, 
        main=NULL, nrows="auto", ylab="Probability", col="blue", leg.cex=1.2, 
        leg.pos="topleft", cex.axis=1.2, cex.main=1.2, cex.lab=1.2, 
        verbose=TRUE, ..., do.png=FALSE, png.width=1500, png.height=900, 
        png.res=90, png.fname="Params_ECDFs.png")
              
## S3 method for class 'data.frame':
params2ecdf(params, param.names=colnames(params), gofs=NULL, 
        MinMax=NULL, beh.thr=NA, weights, byrow=FALSE, plot=TRUE, obs=NULL, 
        main=NULL, nrows="auto", ylab="Probability", col="blue", leg.cex=1.2, 
        leg.pos="topleft", cex.axis=1.2, cex.main=1.2, cex.lab=1.2, 
        verbose=TRUE, ..., do.png=FALSE, png.width=1500, png.height=900, 
        png.res=90, png.fname="Params_ECDFs.png")
params (by default its column names)params (in the same order!)params corresponds to the minimum or maximum of the the objective function. Only used to identify the optimum in the plot 
Valid values are in: c('min', 'max')gofs) greater/less than or equal to beh.thr, depending on the value of MinMax
By default behweights argument or specifying NULL or a zero-length vector will result in the usual un-weighted estimatesparams 
When the parameter sets are stored in rows, i.e. values for different model's parameter are stored in columns, byrow must be <plot=TRUE 
Numeric or zoo object with observed values (one for each params), which are used in the output plotplot=TRUE 
numeric, number of rows to be used in the plotting window. If nrows is set to auto, the number of rows is automatically computed depending on the number of columns of paramsplot=TRUE 
a title for the y axis. See plotplot=TRUE 
a specification for the default plotting colour. See parplot=TRUE 
character expansion factor *relative* to current 'par("cex")'. Used for text, and provides the default for 'pt.cex' and 'title.cex'. Default value = 1.2plot=TRUE 
keyword to be used to position the legend. See legendplot=TRUE 
numeric, magnification to be used for axis annotation relative to the current setting of cexplot=TRUE 
numeric, magnification to be used for main titles relative to the current setting of cexplot=TRUE 
numeric, magnification to be used for x and y labels relative to the current setting of cexplot function or from other methodsdo.png=TRUE 
numeric with the width of the device. See pngdo.png=TRUE 
numeric with the height of the device. See pngdo.png=TRUE 
numeric with the nominal resolution in ppi which will be recorded in the PNG file, if a positive integer of the device. See pngdo.png=TRUE 
character, with the filename used to store the PNG filewtd.Ecdf, quant2ecdf# Setting the user's home directory as working directory
setwd("~")
# matrix with 100 random uniform parameter sets (in rows) for 10 different model's 
# parameters (in columns)
params           <- matrix(rnorm(1000), ncol=10, nrow=100)
colnames(params) <- paste("Param", 1:10, sep="")
# empirical CDFs for each one of the 10 parameters in 'params', with equal weight 
# for each one of the 100 parameter sets
params2ecdf(params, weights=rep(1,100))Run the code above in your browser using DataLab