Call:
lm(formula = Temp ~ Solar.R, data = airquality)
Coefficients:
(Intercept) Solar.R
72.86301 0.02825
My app contains a plot and simple linear regression model to predict temperature for a given value of solar radiation, based on the airquality dataset.
When you input a value for solar radiation using the slider, the display will automatically update:
The plot displays a line of best fit for a simple linear regression of temperature on solar radiation:
When you input a value for solar radiation using the slider, the output will give you the predicted temperature for that value of solar radiation by evaluating the simple linear regression expression. For example, if you input a solar radiation value of 101…
…you will get a predicted temperature of 75.71673.