r:graphics
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r:graphics [2016/12/02 01:29] – [E.G.] hkimscil | r:graphics [2017/11/27 01:27] (current) – [Adding Confidence Intervals to a Bar Chart] hkimscil | ||
|---|---|---|---|
| Line 230: | Line 230: | ||
| F-statistic: | F-statistic: | ||
| + | > plot(LifeCycleSavings) | ||
| > plot(lm.SR) | > plot(lm.SR) | ||
| </ | </ | ||
| + | |||
| + | {{: | ||
| {{: | {{: | ||
| Line 418: | Line 421: | ||
| + | + | ||
| + | + | ||
| - | {{: | + | {{: |
| ====== Adding Confidence Intervals to a Bar Chart ====== | ====== Adding Confidence Intervals to a Bar Chart ====== | ||
| Line 429: | Line 432: | ||
| </ | </ | ||
| - | < | + | < |
| - | tsd <- tapply(Temp, | + | # mean for each month |
| - | tse <- tsd/ | + | tsd <- tapply(Temp, |
| + | # sd for each month | ||
| + | tse <- tsd/ | ||
| + | # se for each month | ||
| lower <- tmean - 1.96*tse | lower <- tmean - 1.96*tse | ||
r/graphics.1480642171.txt.gz · Last modified: by hkimscil
