Update page 'Solutions to the questions concerning R language'
@@ -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)
|
||||
```
|
||||
|
||||

|
||||
|
||||
**iii.**
|
||||
```
|
||||
@@ -464,7 +464,7 @@ abline(-0.5, 1)
|
||||
abline(-1, 1, lty = 2)
|
||||
abline(0, 1, lty = 2)
|
||||
```
|
||||
|
||||

|
||||
**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)
|
||||
```
|
||||

|
||||
|
||||
**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)
|
||||
```
|
||||
|
||||

|
||||
```
|
||||
−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"))
|
||||
```
|
||||
```
|
||||

|
||||
Reference in New Issue
Block a user