R Programming Questions and Answers – Graphics with R – 1

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Graphics with R – 1”.

1. Which level plotting commands generate figures?
a) Low
b) High
c) Both high and low
d) No levels
View Answer

Answer: b
Explanation: High level plotting commands generate figures. A figure consists of a plot region surrounded by margins.

2. The size of the margins is controlled by the argument _____
a) Mai
b) Sai
c) Lai
d) Jai
View Answer

Answer: a
Explanation: The size of the margins is controlled by the argument mai. The value of mai is a vector c(bottom, left, top, right) of length 4 whose values are the widths.

3. ______ will be called inside par() to set margins.
a) Mai
b) Smai
c) May
d) Jay
View Answer

Answer: a
Explanation: The value of mai is vector c(bottom, left, top, right) of length 4 whose values are the widths. Mai will be called inside par() to set margins.
advertisement
advertisement

4. Axes, axis labels and titles all appear in the ________ of the figure.
a) Directions
b) Margin labels
c) Margins
d) Widths
View Answer

Answer: c
Explanation: Axes, axis labels and titles all appear in the margins of the figure. Mai will be called inside par() to set margins.

5. Each margin is considered to have a number of ___________
a) Test
b) Text lines
c) Line segment
d) Margins
View Answer

Answer: c
Explanation: Axes, axis labels and titles all appear in the margins of the figure. Each margin is considered to have a number of text lines (not necessarily a whole number).

6. Which line numbers are further away from the plot?
a) Lower
b) Higher
c) Medium
d) Simple
View Answer

Answer: b
Explanation: Higher line numbers are further away from the plot. Axes, axis labels and titles all appear in the margins of the figure.

7. The graphical parameter __________ defines how many lines appear in each of the four margins.
a) Par
b) Mar
c) Char
d) Ian
View Answer

Answer: b
Explanation: The graphical parameter mar defines how many lines appear in each of the four margins. So mar is an alternative way of defining margins.
advertisement

8. Which is the alternative way of defining margins?
a) Mar
b) Par
c) Char
d) Nar
View Answer

Answer: a
Explanation: The graphical parameter mar defines how many lines appear in each of the four margins. So mar is an alternative way of defining margins.

9. The standard font determines the width of the text lines in the __________
a) Function
b) Package
c) Library
d) Margin
View Answer

Answer: d
Explanation: For any open graphics device there is a standard font which will be used for any characters if no other font is specified (font). The standard font determines the width of the text lines in the margins.
advertisement

10. Which function draws an axis on the current plot?
a) axis()
b) par()
c) mar()
d) jar()
View Answer

Answer: a
Explanation: The axis() function draws an axis on the current plot. The side argument determines on which side it is to appear.

Sanfoundry Global Education & Learning Series – R Programming Language.

Here’s the list of Best Books in R Programming Language .

To practice all areas of R Programming Language, Here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.