Page 270 - Data Science class 11
P. 270

border = "brown")
             # Saving the file.
             dev.off()
        Running this code snippet will show the following:























        And the box plot as:






























        7.9.2  example of a boxplot where the numeric vector is grouped according to
                 another value.
        Example

        Enter the following code snippet in the script panel:
             # Getting the input values.
             Temperature <- airquality$Temp
             # Give the chart file a name.
             png(file = "airquality5.png")
             #plotting the box plot
             boxplot(Temp~Month,
             airquality,
             main = "Monthly Temperature boxplot",

          268   Touchpad Data Science-XI
   265   266   267   268   269   270   271   272   273   274   275