R (programming language): Difference between revisions

Content deleted Content added
Clarified the connection between the code block above and the text output below.
Clarified the connection between the code block on the left and the diagnostic plots on the right.
Line 366:
 
=== Modeling and plotting ===
[[File:Plots from lm example.svg|right|thumb|200px|Diagnostic plots for the model from visualizingthe aexample modelcode in the "Modeling and plotting" objectsection (q.v. the <code>plot.lm()</code> function). Mathematical notation is allowed in labels, as shown in the lower left plot.]]
The R language has built-in support for [[data modeling]] and graphics. The following example shows how R can generate and plot a [[linear model]] with residuals.
<syntaxhighlight lang="r">