You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R-Data Visualization/Visualizing-Quantities/README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ We use the`ggplot2`package for plotting a line graph of the confirmed covid case
67
67
68
68
The graph looks like this:
69
69
70
-

70
+

71
71
72
72
To make the plot understandable, we can change the Y-axis scales to numbers instead of abbreviated points (abbreviated to e) using the ['scales'](https://scales.r-lib.org/) package. We can also add points, title, customized labels on the line graph for a better presentation.
You have now successfully added customized labels to the axes, titled the plot, changed the colour of the line to red and points on the y-axis are now in the numerical format instead of the abbreviated format.
86
86
87
-

87
+

88
88
89
89
Similarly, you can now plot the line graphs for the recovered and the deceased cases.
ggtitle("Deceased COVID-19 cases from Jan 2020 to Nov 2021") +
105
105
scale_y_continuous(labels=comma)
106
106
```
107
-

107
+

108
108
109
-

109
+


125
+

126
126
127
127
Similarly, we can also make the bar charts for the recovered and the deceased cases in different colours.
128
128
129
-

130
-

129
+

130
+


162
+

0 commit comments