|
DI plot.network.setupInitialize network plot window DESCRIPTION: Initializes the axes using the function equal.axis so the resolution of the plot is correct. USAGE: plot.network.setup(nw.obj=new.network, xrange=NULL, yrange=NULL, ...) REQUIRED ARGUMENTS: nw.obj A network object as created by make.network.obj OPTIONAL ARGUMENTS: xrange range of x-values for plot yrange range of y-values for plot ... other par options for the function, plot SIDE EFFECTS: Opens a graphics device and sets up a plot area. SEE ALSO: equal.axis, plot.network, se.image, image.plot EXAMPLES: # The function is currently defined as function(nw.obj = new.network, xrange = NULL, yrange = NULL, ...) { if(nw.obj$cov.obj$args$lon.lat) p.labels <- c("Longitude", "Latitude") else p.labels <- c("x", "y") xrange <- range(nw.obj$grid$x) yrange <- range(nw.obj$grid$y) temp <- equal.axis(xrange, yrange) plot(temp$x, temp$y, type = "n", xlab = p.labels[1], ylab = p.labels[2], ...) } |
This is software for statistical research and should not be used for commercial purposes. The authors do not guarantee the correctness of any function or program in this package.