Q:

Write a R program to create a simple bar plot of five subjects marks

0

Write a R program to create a simple bar plot of five subjects marks.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

marks = c(70, 95, 80, 74)
barplot(marks,
main = "Comparing marks of 5 subjects",
xlab = "Marks",
ylab = "Subject",
names.arg = c("English", "Science", "Math.", "Hist."),
col = "darkred",
horiz = FALSE)

Sample Output:

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now