Skip to content

Commit b081fbb

Browse files
Fixed image sources
1 parent 959c49d commit b081fbb

File tree

1 file changed

+10
-10
lines changed
  • R-Data Visualization/Visualizing-Quantities

1 file changed

+10
-10
lines changed

R-Data Visualization/Visualizing-Quantities/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ We use the`ggplot2`package for plotting a line graph of the confirmed covid case
6767

6868
The graph looks like this:
6969

70-
![Confirmed COVID-19 cases line graph](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/confirmed_line-graph.png)
70+
![Confirmed COVID-19 cases line graph](Graphs/confirmed_line-graph.png)
7171

7272
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.
7373

@@ -84,7 +84,7 @@ ggplot(df_covid,aes(x=updated, y=confirmed)) +
8484
```
8585
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.
8686

87-
![Confirmed COVID-19 cases line graph](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/confirmed_line-graph1.png)
87+
![Confirmed COVID-19 cases line graph](Graphs/confirmed_line-graph1.png)
8888

8989
Similarly, you can now plot the line graphs for the recovered and the deceased cases.
9090
```r
@@ -104,9 +104,9 @@ ggplot(df_covid,aes(x=updated, y=deaths)) +
104104
ggtitle("Deceased COVID-19 cases from Jan 2020 to Nov 2021") +
105105
scale_y_continuous(labels=comma)
106106
```
107-
![Recovered COVID-19 cases line graph](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/recovered_line-graph.png)
107+
![Recovered COVID-19 cases line graph](Graphs/recovered_line-graph.png)
108108

109-
![Deceased COVID-19 cases line graph](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/deceased_line-graph.png)
109+
![Deceased COVID-19 cases line graph](Graphs/deceased_line-graph.png)
110110

111111
## Exploring bar graphs
112112

@@ -122,12 +122,12 @@ ggplot(data=df, aes(x=updated, y=confirmed, fill=confirmed)) +
122122
scale_fill_gradient(low = "green", high = "red",labels = comma)
123123
```
124124

125-
![Confirmed cases bar chart](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/confirmed_bar-graph.png)
125+
![Confirmed cases bar chart](Graphs/confirmed_bar-graph.png)
126126

127127
Similarly, we can also make the bar charts for the recovered and the deceased cases in different colours.
128128

129-
![Recovered cases bar chart](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/recovered_bar-graph.png)
130-
![Deceased cases bar chart](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/deceased_bar-graph.png)
129+
![Recovered cases bar chart](Graphs/recovered_bar-graph.png)
130+
![Deceased cases bar chart](Graphs/deceased_bar-graph.png)
131131

132132
### Stacked Bar Chart
133133

@@ -159,7 +159,7 @@ df_covid %>% group_by(updated) %>%
159159
scale_y_continuous(labels=comma) +
160160
labs(fill="Type of case")
161161
```
162-
![COVID-19 cases stacked bar plot](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/stacked-bar-graph.png)
162+
![COVID-19 cases stacked bar plot](Graphs/stacked-bar-graph.png)
163163

164164
## Scatter plot
165165

@@ -181,7 +181,7 @@ df_covid %>% group_by(updated) %>%
181181
scale_y_continuous(labels=comma) +aes(color=key)
182182
```
183183

184-
![Scatter Plot](https://github.com/Vidushi-Gupta/Data-Science-For-Beginners/blob/main/R-Data%20Visualization/Visualizing-Quantities/Graphs/scatter-plot.png)
184+
![Scatter Plot](Graphs/scatter-plot.png)
185185

186186
All these graphs help in clear interpretation and analysis of the COVID-19 data
187187

@@ -195,4 +195,4 @@ This first lesson has given you some information about how to use ggplot2 to vis
195195

196196
## Assignment
197197

198-
[Line, Bar and Scatter plot]()
198+
[Line, Bar and Scatter plot]() yet to be linked

0 commit comments

Comments
 (0)