1.

Which is the method used to draw a bar plot?(a) bar_plot()(b) plot(bar)(c) barplot()(d) plotbar()The question was posed to me by my school teacher while I was bunking the class.My doubt stems from Enhanced JavaScript with R in chapter Sockets of JavaScript

Answer»

Right option is (c) barplot()

To explain: 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.



Discussion

No Comment Found

Related InterviewSolutions