742). What is the purpose of the method plot()?
[A]Displays symbols
[B]Displays charts
[C]Displays symbols and charts
[D]Display characters
Show Answer
Correct Answer: Displays charts
Notes:
Answer: b
Explanation: The most used plotting function in R programming is the plot() function. It is a generic function, meaning, it has many methods which are called according to the type of object passed to plot(). The plot() function will display a different type of chart depending on the arguments that you pass into it.
743). How many parameters does the method plot() accept?
Show Answer
Correct Answer: 9
Notes:
Answer: d
Explanation: Plot() is a generic function, meaning, it has many methods which are called according to the type of object passed to plot(). The method plot() accepts a total of 9 parameters.
744). What is the need for bubble charts?
[A]Represent 2D data
[B] Represent 3D data
[C]Represent 2D and 3D data
[D]Represents meta data
Show Answer
Correct Answer: Represent 3D data
Notes:
Answer: b
Explanation: A bubble plot is a scatterplot where a third dimension is added the value of an additional variable is represented through the size of the dots. They are used to represent three-dimensional data.
745). Which of the following is the initial function used to create a bubble chart natively in R?
[A]init()
[B]chart(bubble)
[C]symbols()
[D]bchart()
Show Answer
Correct Answer: symbols()
Notes:
Answer: c
Explanation: symbols() function draws symbols on a plot. One of six symbols; circles, squares, rectangles, stars, thermometers, and boxplots, can be plotted at a specified set of x and y coordinates. The method symbols() is used to create a bubble chart natively in R.
746). What is the purpose of the method symbols in R?
[A]Draw symbols
[B] Draw other shapes
[C] Draw symbols and other shapes
[D] Plotting symbols
Show Answer
Correct Answer: Draw other shapes
Notes:
Answer: b
Explanation: The symbols() function can be used to draw other shapes on a plot; for more information about this type ?symbols at the R console. One of six symbols; circles, squares, rectangles, stars, thermometers, and boxplots, can be plotted at a specified set of x and y coordinates.
747). How to save chart as a Window metafile?
[A]metafile()
[B] win.metafile()
[C]file()
[D]metawin()
Show Answer
Correct Answer: win.metafile()
Notes:
Answer: b
Explanation: Metafile is a piece of graphical information stored in a format that can be exchanged between different systems or software. The method win.metafile([filename]) is used to save chart as a Window metafile.
748). Which is the method used to save chart as a ps file?
[A]ps()
[B]postscript()
[C]script()
[D]post(script)
Show Answer
Correct Answer: postscript()
Notes:
Answer: b
Explanation: postscript starts the graphics device driver for producing PostScript graphics. The syntax for the method to save chart as a ps file is : postscript([filename]).
749). Which of the following are methods not used to save charts?
[A]pdf()
[B]jpeg()
[C] bmp()
[D]pmb()
Show Answer
Correct Answer: pmb()
Notes:
Answer: d
Explanation: Since R runs on so many different operating systems, and supports so many different graphics formats, it’s not surprising that there are a variety of ways of saving your plots, depending on what operating system you are using, what you plan to do with the graph, and whether you’re connecting locally or remotely.
750). Which is the method used to draw a bar plot?
[A]bar_plot()
[B] plot(bar)
[C]barplot()
[D]plotbar()
Show Answer
Correct Answer: barplot()
Notes:
Answer: c
Explanation: A bar chart represents data in rectangular bars with length of the bar proportional to the value of the variable. R uses the function barplot() to create bar charts.
751). What is the purpose of the method par()?
[A]Makes the text vertical
[B]Makes the text horizontal
[C]Makes the text diagonal
[D]Makes the text small
Show Answer
Correct Answer: Makes the text horizontal
Notes:
Answer: b
Explanation: The par(mfrow) function is handy for creating a simple multi-paneled plot, while layout should be used for customized panel plots of varying sizes. With the method par(), you can make the text horizontal.