#*****************************************************************************80 # ## president_heights_bar makes a bar plot of Presidential heights. # # Licensing: # # This code is distributed under the MIT license. # # Modified: # # 26 August 2020 # # Author: # # John Burkardt # cat ( date ( ), "\n" ) cat ( "\n" ) cat ( "president_heights_bar\n" ) cat ( " ", version$version.string, "\n" ) cat ( " Create a bar plot of the height in inches of US presidents." ) filename = "president_heights_data.txt" data <- read.table ( filename, header = FALSE ) filename = "president_heights_bar.png" png ( filename ) barplot ( data[,1], col = 'blue', xlab = "Index", ylab = "Height (inches)", main = "US President Heights" ) grid ( ) cat ( ' Graphics saved as "', filename, '"\n' ) # # Terminate. # cat ( "\n" ) cat ( "president_heights_bar:\n" ) cat ( " Normal end of execution.\n" ) quit ( )