basic graph
For this assignment I created a histogram in R using the built in mtcars dataset to show the distribution of miles per gallon (mpg). The visualization makes it easy to see that most cars fall between about 15 and 25 mpg, with only a few vehicles above 30 mpg. This fits with Few’s and Yau’s discussion on basic descriptive visualization because it focuses on clarity and simplicity rather than decoration. The chart communicates one clear message about the spread of the data and avoids unnecessary visual elements. Overall, it works well as a basic example of descriptive analysis in R.

Comments
Post a Comment