User Tools

Site Tools


r:graphics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
r:graphics [2017/11/27 09:55] – [Creating a Bar Chart] hkimscilr:graphics [2017/11/27 09:57] (current) – [Adding Confidence Intervals to a Bar Chart] hkimscil
Line 432: Line 432:
 </code> </code>
  
-<code>tmean <- tapply(Temp, list(as.factor(Month)), mean)  # mean for each month +<code>tmean <- tapply(Temp, list(as.factor(Month)), mean)   
-tsd <- tapply(Temp, list(as.factor(Month)),sd)  # sd for each month +# mean for each month 
-tse <- tsd/sqrt(length(Temp))  # se for each month+tsd <- tapply(Temp, list(as.factor(Month)),sd)   
 +# sd for each month 
 +tse <- tsd/sqrt(length(Temp))   
 +# se for each month
  
 lower <- tmean - 1.96*tse lower <- tmean - 1.96*tse
r/graphics.1511745913.txt.gz · Last modified: 2017/11/27 09:55 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki