R Ka Assignment
R Ka Assignment
AKASH RAJ
665
DSE 4
2022-2025
Professor sign
1. Load dataset and plot histogram (equal class
intervals)
Question:
Using the mtcars dataset, plot a histogram for the
mpg variable (miles per gallon) using equal class
intervals. Explain each step and interpret the results.
Solution:-
Interpretation:-
Question:
Solution :-
$ hist(data$mpg,
$ breaks = c(10,15,20,25,30,35),
$ main = "Histogram with Unequal Intervals",
$ xlab = "Miles Per Gallon",
$ col = "orange")
Explanation:-
Interpretation:-