Update page 'Solutions to the questions concerning R language'

xuanyi.wang
2023-05-22 21:20:53 +02:00
parent cfe13dd00d
commit cf53272a3f
+6 -5
@@ -450,7 +450,7 @@ a=X2−X1=1.5−2=−0.5
plot(x1, x2, col = colors, xlim = c(0, 5), ylim = c(0, 5))
abline(-0.5, 1)
```
![ii](https://gogs.gtsplab.com:5432/SVIG/python-bootcamp/raw/Branch_Sloetjes/ii.png)
**iii.**
```
@@ -464,7 +464,7 @@ abline(-0.5, 1)
abline(-1, 1, lty = 2)
abline(0, 1, lty = 2)
```
![iv](https://gogs.gtsplab.com:5432/SVIG/python-bootcamp/raw/Branch_Sloetjes/iv.png)
**v.**
```
plot(x1, x2, col = colors, xlim = c(0, 5), ylim = c(0, 5))
@@ -474,6 +474,7 @@ arrows(2, 2, 2, 1.5)
arrows(4, 4, 4, 3.5)
arrows(4, 3, 4, 3.5)
```
![v](https://gogs.gtsplab.com:5432/SVIG/python-bootcamp/raw/Branch_Sloetjes/v.png)
**vi.**
@@ -484,13 +485,13 @@ A slight movement of observation #7 (4,1) blue would not have an effect on the m
plot(x1, x2, col = colors, xlim = c(0, 5), ylim = c(0, 5))
abline(-0.8, 1)
```
![vii](https://gogs.gtsplab.com:5432/SVIG/python-bootcamp/raw/Branch_Sloetjes/vii.png)
```
−0.8−X1+X2>0
```
**viii.**
```
plot(x1, x2, col = colors, xlim = c(0, 5), ylim = c(0, 5))
points(c(4), c(2), col = c("red"))
```
```
![viii](https://gogs.gtsplab.com:5432/SVIG/python-bootcamp/raw/Branch_Sloetjes/viii.png)