#*****************************************************************************80 # ## volcano_fill_contour makes a filled contour plot of volcano height. # # Discussion: # # The grid is a 41x41 array of values over the region [-2,2]x[-2,2]. # # Licensing: # # This code is distributed under the MIT license. # # Modified: # # 30 August 2020 # # Author: # # John Burkardt # cat ( "\n" ) cat ( "volcano_fill_contour:\n" ) cat ( " ", version$version.string, "\n" ) cat ( " Make a filled color contour plot of volcano height.\n" ) # # Read the data. # filename = 'volcano_data.csv' z <- read.csv ( file = filename, header = FALSE ) # # Z is a full matrix. # z.matrix <- as.matrix ( z ) filename = 'volcano_fill_contour.png' png ( filename ) filled.contour ( z.matrix, nlevels = 15, main = "Fill contour of volcano height", xlab = "<-- X -->", ylab = "<-- Y -->" ) cat ( "\n" ) cat ( " Graphics saved as '", filename, "'\n" ) # # Terminate. # cat ( "\n" ) cat ( "volcano_fill_contour:\n" ) cat ( " Normal end of execution.\n" ) quit ( )