« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Built-in Integration with R

Visualize Linear Model Fit 

Fit data with R's linear model fitting function and visualize the result in Mathematica.
First, load and install the R runtime. Generate random data in Mathematica and perform a linear fit in R. Finally, use Mathematica to visualize the fit.
In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
In[3]:=
Click for copyable input
X
Out[3]=
In[4]:=
Click for copyable input
X
Out[4]=