Description Usage Arguments Value Author(s) References See Also Examples

Shows what matrices *A, b* look like as the system of linear equations, *A x = b* with two unknowns,
x1, x2, by plotting a line for each equation.

1 2 |

`A` |
either the matrix of coefficients of a system of linear equations, or the matrix |

`b` |
if supplied, the vector of constants on the right hand side of the equations, of length matching
the number of rows of |

`vars` |
a numeric or character vector of names of the variables.
If supplied, the length must be equal to the number of unknowns in the equations.
The default is |

`xlim` |
horizontal axis limits for the first variable |

`ylim` |
vertical axis limits for the second variable; if missing, |

`col` |
scalar or vector of colors for the lines, recycled as necessary |

`lwd` |
scalar or vector of line widths for the lines, recycled as necessary |

`lty` |
scalar or vector of line types for the lines, recycled as necessary |

`axes` |
logical; draw horizontal and vertical axes through (0,0)? |

`labels` |
logical, or a vector of character labels for the equations; if |

`solution` |
logical; should the solution points for pairs of equations be marked? |

nothing; used for the side effect of making a plot

Michael Friendly

Fox, J. and Friendly, M. (2016). "Visualizing Simultaneous Linear Equations, Geometric Vectors, and
Least-Squares Regression with the matlib Package for R". *useR Conference*, Stanford, CA, June 27 - June 30, 2016.

1 2 3 4 5 6 7 8 9 10 |

```
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE
3: .onUnload failed in unloadNamespace() for 'rgl', details:
call: fun(...)
error: object 'rgl_quit' not found
1*x1 - 1*x2 = 2
2*x1 + 2*x2 = 1
3*x1 + 1*x2 = 3
x1 - x2 = 2
2*x1 + 2*x2 = 1
3*x1 + x2 = 3
1*x1 - 1*x2 = 2
2*x1 + 2*x2 = 1
3*x1 + 1*x2 = 6
x1 - x2 = 2
2*x1 + 2*x2 = 1
3*x1 + x2 = 6
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.