Page 257 - Data Science class 11
P. 257
And it produces the following graph:
7.5.2 horizontal Bar chart
R language supports two ways to plot a bar plot:
• Vertical Bars
• Horizontal Bars
Horizontal bar chart. The bar function has a field named "horiz" keep that field value "TRUE" to create the bar plot
horizontally.
Enter the following code snippet in the script panel:
Coding for Data Science Visualisation using R-Studio 255

